/* ==========================================================================
   AgriPlani – Content pages typography layer
   Used by: About Us, Contact Us, Team, My Team.
   Mirrors the home page pairing: Poppins headings + Inter body.
   Loaded only on these pages, so the overrides stay scoped.
   ========================================================================== */

:root {
  --brand-green: #8aba42;
  --brand-teal: #19748c;
  --brand-navy: #003254;
  --ease-soft: cubic-bezier(0.16, 0.84, 0.44, 1);
  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-heading: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
}

body.light {
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Body copy: templated elements + team / contact blocks.
   Beats the per-element font-family baked into login.css / classes.css. */
[id^="de_"],
.team_box,
.team_box .members .member a,
.contactMe,
.contactMe .title,
.contactMe .phone,
.contactMe .email {
  font-family: var(--font-sans) !important;
}

/* Display headings win back the Poppins face via higher specificity. */
#de_9e94e0d9-e7a9-07d5-b49e-3c788d995566,
.team_box .title,
.backPhoto .myName {
  font-family: var(--font-heading) !important;
  letter-spacing: -0.4px;
}

/* --------------------------------------------------------------------------
   Header – floating glass navigation bar (matches the home page)
   -------------------------------------------------------------------------- */
#de_4a4b811f-7964-4f9d-b0f6-b4c4fa9dc5d5 {
  background: rgba(0, 50, 84, 0.18);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: 10px 22px;
  box-sizing: border-box;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.16);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.headerItem {
  position: relative;
  padding-bottom: 4px;
  transition: color 0.25s ease, opacity 0.25s ease;
}

.headerItem::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  border-radius: 2px;
  background: var(--brand-green);
  transition: width 0.28s var(--ease-soft);
}

.headerItem:hover::after {
  width: 100%;
}

.menuBtn {
  cursor: pointer;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menuBtn:hover {
  transform: scale(1.08);
  opacity: 0.85;
}

/* --------------------------------------------------------------------------
   Team page – professional member grid (selectors exist only on this page)
   -------------------------------------------------------------------------- */
.main_box_team {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 0 60px;
  box-sizing: border-box;
}

.team_box {
  padding: 40px 24px 24px !important;
  box-sizing: border-box;
}

/* Section heading – centered with the brand gradient accent underline */
.team_box .title {
  position: relative;
  display: block;
  text-align: center;
  font-size: 32px !important;
  font-weight: 700;
  color: var(--brand-navy);
  margin: 0 auto 56px !important;
  padding-bottom: 18px;
}

.team_box .title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 72px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--brand-green), var(--brand-teal));
}

/* Responsive card grid replaces the wide flex gap */
.team_box .members {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 30px !important;
  padding: 0 !important;
  align-items: stretch !important;
  justify-items: center;
}

/* Member card */
.team_box .members .member {
  width: 100%;
  max-width: 260px;
  gap: 0 !important;
  box-sizing: border-box;
  background: #ffffff;
  border: 1px solid rgba(0, 50, 84, 0.07);
  border-radius: 18px;
  padding: 32px 22px 26px;
  box-shadow: 0 18px 40px -26px rgba(0, 50, 84, 0.35);
  opacity: 0;
  animation: teamCardIn 0.6s var(--ease-soft) both;
  transition: box-shadow 0.32s var(--ease-soft), border-color 0.32s var(--ease-soft);
}

.team_box .members .member:hover {
  border-color: rgba(138, 186, 66, 0.5);
  box-shadow: 0 30px 56px -24px rgba(25, 116, 140, 0.45);
}

/* Staggered entrance */
.team_box .members .member:nth-child(1) { animation-delay: 0.05s; }
.team_box .members .member:nth-child(2) { animation-delay: 0.12s; }
.team_box .members .member:nth-child(3) { animation-delay: 0.19s; }
.team_box .members .member:nth-child(4) { animation-delay: 0.26s; }
.team_box .members .member:nth-child(5) { animation-delay: 0.33s; }
.team_box .members .member:nth-child(6) { animation-delay: 0.40s; }
.team_box .members .member:nth-child(n + 7) { animation-delay: 0.46s; }

@keyframes teamCardIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

/* Avatar – circular with a soft brand ring */
.team_box .members .member img {
  width: 150px !important;
  height: 150px !important;
  object-fit: cover;
  border: 4px solid #ffffff !important;
  box-shadow:
    0 0 0 3px rgba(138, 186, 66, 0.85),
    0 14px 26px -12px rgba(25, 116, 140, 0.55);
  margin: 0 auto 22px !important;
  transition: transform 0.35s var(--ease-soft), box-shadow 0.35s var(--ease-soft);
}

.team_box .members .member:hover img {
  transform: scale(1.06);
  box-shadow:
    0 0 0 3px var(--brand-teal),
    0 18px 32px -12px rgba(25, 116, 140, 0.6);
}

/* Member name */
.team_box .members .member a {
  font-family: var(--font-heading) !important;
  font-size: 18px !important;
  font-weight: 600;
  color: var(--brand-navy) !important;
  letter-spacing: -0.2px;
  text-align: center;
}

.team_box .members .member a:hover {
  color: var(--brand-teal) !important;
}

@media only screen and (max-width: 600px) {
  .team_box {
    padding: 24px 12px 16px !important;
  }

  .team_box .title {
    font-size: 26px !important;
    margin-bottom: 40px !important;
  }

  .team_box .members {
    gap: 22px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .team_box .members .member {
    opacity: 1;
    animation: none;
  }
}

/* --------------------------------------------------------------------------
   My Team – single member profile (selectors exist only on this page)
   -------------------------------------------------------------------------- */

/* Hero banner: rounded base, legibility overlay, floating photo */
.backPhoto {
  overflow: hidden;
  border-bottom-left-radius: 28px;
  border-bottom-right-radius: 28px;
}

.backPhoto::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(120% 130% at 12% 20%, rgba(0, 50, 84, 0.25), transparent 55%),
    linear-gradient(180deg, transparent 52%, rgba(0, 50, 84, 0.32) 100%);
}

.backPhoto .myName {
  z-index: 2;
  font-size: 48px;
  letter-spacing: -0.6px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.28);
  animation: mtFadeUp 0.7s var(--ease-soft) both;
}

.backPhoto .myPhoto {
  z-index: 2;
  filter: drop-shadow(0 24px 42px rgba(0, 0, 0, 0.32));
  animation: mtFadeIn 0.8s var(--ease-soft) 0.1s both;
}

/* Body: intro column + sticky contact card */
#de_a747309e-0479-45de-819f-13151ff408f5.myteam-body {
  align-items: flex-start !important;
  gap: 50px !important;
  max-width: 1280px;
  margin: 0 auto !important;
  padding: 70px 60px !important;
  box-sizing: border-box;
  min-height: auto !important;
}

.myteam-body > #de_c905a26f-9c55-44ed-a362-2337bd215a77 {
  flex: 1 1 auto !important;
  width: auto !important;
  padding: 0 !important;
  font-size: 17px;
  line-height: 38px;
}

.myteam-body .contactMe {
  flex: 0 0 300px !important;
  width: 300px !important;
  padding: 30px !important;
  gap: 12px !important;
  background: #ffffff;
  border: 1px solid rgba(0, 50, 84, 0.08);
  border-radius: 18px;
  box-shadow: 0 24px 50px -30px rgba(0, 50, 84, 0.4);
  position: sticky;
  top: 100px;
  animation: mtFadeUp 0.6s var(--ease-soft) 0.1s both;
}

.myteam-body .contactMe .title {
  font-family: var(--font-heading) !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: var(--brand-teal) !important;
  padding-bottom: 14px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(0, 50, 84, 0.08);
}

.myteam-body .contactMe .phone,
.myteam-body .contactMe .email {
  color: var(--brand-navy) !important;
  transition: color 0.25s ease;
}

.myteam-body .contactMe .phone:hover,
.myteam-body .contactMe .email:hover {
  color: var(--brand-teal) !important;
}

@keyframes mtFadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

@keyframes mtFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media only screen and (max-width: 900px) {
  #de_a747309e-0479-45de-819f-13151ff408f5.myteam-body {
    flex-direction: column !important;
    padding: 40px 30px !important;
    gap: 30px !important;
  }

  .myteam-body .contactMe {
    width: 100% !important;
    flex: none !important;
    position: static !important;
  }

  .backPhoto .myName {
    font-size: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .backPhoto .myName,
  .backPhoto .myPhoto,
  .myteam-body .contactMe {
    animation: none;
    opacity: 1;
  }
}
