/* 
 * The Designers Hub Luxury Ecosystem - Unified Bundle
 * Clean, Standardized, and Fully Responsive
 * Version: 7.1.69
 */

:root {
  /* Brand Colors (Figma Match) */
  --tdh-primary: #9aa892;
  /* Sage Green */
  --tdh-secondary: #7e8d75;
  /* Darker Sage */
  --tdh-accent: #b0bfb0;
  /* Light Sage Accent */
  --tdh-teal: #9aa892;
  /* Replacing old teal with sage */
  --tdh-dark: #2a2d2a;
  --tdh-navy: #1f221f;
  --tdh-light: #f8f6f0;
  --tdh-white: #ffffff;
  --tdh-cream: #f4efdf;
  /* Deep cream from figma */
  --tdh-text: #4a4a4a;
  --tdh-text-dark: #1f221f;
  --tdh-text-light: #7c8577;
  --tdh-gray: #6b6b6b;
  --tdh-gold: #c5a059;
  --tdh-border: #e3ded5;

  /* Typography */
  --tdh-font-body: "Outfit", "Inter", sans-serif;
  --tdh-font-luxury: "Playfair Display", serif;

  /* Effects */
  --tdh-gradient-primary: linear-gradient(135deg, #9aa892 0%, #7e8d75 100%);
  --tdh-gradient-accent: linear-gradient(135deg, #7e8d75 0%, #c5a059 100%);
  --tdh-gradient-dark: linear-gradient(135deg, #1f221f 0%, #2a2d2a 100%);
  --tdh-shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.03);
  --tdh-shadow-md: 0 10px 30px rgba(0, 0, 0, 0.05);
  --tdh-shadow-lg: 0 30px 60px rgba(0, 0, 0, 0.08);
  --tdh-transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  --tdh-radius: 20px;
}

/* Header Base & Navigation */
.tdh-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  transition: all 0.3s;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 15px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.tdh-header.tdh-sticky {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.tdh-header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tdh-desktop-nav .tdh-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 30px;
  align-items: center;
}

.tdh-desktop-nav .tdh-menu>li>a {
  text-decoration: none;
  font-weight: 600;
  color: var(--tdh-text-dark);
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.tdh-desktop-nav .tdh-menu>li>a:hover {
  color: var(--tdh-primary);
}

.tdh-desktop-nav .tdh-has-dropdown {
  position: relative;
}

.tdh-desktop-nav .tdh-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 250px;
  padding: 10px 0;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  list-style: none;
  margin-top: 15px;
}

.tdh-desktop-nav .tdh-has-dropdown:hover .tdh-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.tdh-desktop-nav .tdh-dropdown a {
  display: block;
  padding: 10px 20px;
  color: var(--tdh-text-light);
  text-decoration: none;
  transition:
    background 0.2s,
    color 0.2s;
  font-size: 0.9rem;
}

.tdh-desktop-nav .tdh-dropdown a:hover {
  background: var(--tdh-light);
  color: var(--tdh-primary);
}

/* Global Reset & Fixes */
.designers-hub {
  box-sizing: border-box;
  font-family: "Outfit", "Inter", sans-serif;
  color: var(--tdh-text);
  line-height: 1.6;
  overflow-x: hidden;
  /* Prevent horizontal scroll within plugin container */
}

.designers-hub * {
  box-sizing: border-box;
}

/* Fix for Menus/Containers breaking out */
.tdh-container-fluid {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* Better Breakout - Safe for all themes */
.tdh-breakout-fix {
  width: 100%;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  left: 0 !important;
  right: 0 !important;
  position: static !important;
}

/* Base Typography */
.tdh-luxury-font {
  font-family: "Playfair Display", serif !important;
}

.tdh-rtl {
  direction: rtl;
  text-align: right;
}

/* Buttons */
.tdh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 40px;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  transition: var(--tdh-transition);
  cursor: pointer;
  border: none;
  font-size: 16px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.tdh-btn-primary {
  background: var(--tdh-gradient-primary);
  color: white;
  box-shadow: 0 10px 25px rgba(12, 184, 182, 0.25);
}

.tdh-btn-primary:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(12, 184, 182, 0.35);
}

.tdh-btn-outline {
  border: 2px solid var(--tdh-teal);
  color: var(--tdh-teal);
  background: transparent;
}

.tdh-btn-outline:hover {
  background: var(--tdh-teal);
  color: white;
}

.tdh-btn-gold {
  background: var(--tdh-gradient-accent);
  color: white;
}

/* Cards */
.tdh-card {
  background: var(--tdh-white);
  border-radius: var(--tdh-radius);
  padding: 40px;
  box-shadow: var(--tdh-shadow-md);
  border: 1px solid var(--tdh-border);
  transition: var(--tdh-transition);
}

.tdh-card:hover {
  box-shadow: var(--tdh-shadow-lg);
  transform: translateY(-5px);
}

/* --- COMPONENTS --- */

/* Section Header */
.tdh-section-header {
  text-align: center;
  margin-bottom: 70px;
  padding: 0 20px;
}

.tdh-section-header h2 {
  font-size: 48px;
  color: var(--tdh-dark);
  margin-bottom: 20px;
  font-weight: 850;
}

.tdh-section-header p {
  color: var(--tdh-gray);
  font-size: 18px;
  max-width: 750px;
  margin: 0 auto;
}

/* Fashion Programmes Grid */
.journeys-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 40px;
  padding: 20px;
}

.journey-card-premium {
  background: var(--tdh-white);
  border-radius: var(--tdh-radius);
  overflow: hidden;
  border: 1px solid var(--tdh-border);
  transition: var(--tdh-transition);
  display: flex;
  flex-direction: column;
}

.journey-card-premium:hover {
  border-color: var(--tdh-teal);
}

.journey-media {
  position: relative;
  height: 280px;
  overflow: hidden;
}

.journey-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 1s ease;
}

.journey-card-premium:hover .journey-media img {
  transform: scale(1.1);
}

.journey-body {
  padding: 35px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.journey-body h3 {
  font-size: 28px;
  color: var(--tdh-dark);
  margin: 0 0 15px 0;
  font-weight: 800;
}

/* Designers Hub Elite Club Tiers */
.tiers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  padding: 20px;
}

.tier-card {
  background: var(--tdh-white);
  border-radius: var(--tdh-radius);
  padding: 40px;
  border: 1px solid var(--tdh-border);
  transition: var(--tdh-transition);
  display: flex;
  flex-direction: column;
}

.tier-card.highlighted {
  border: 2px solid var(--tdh-teal);
  background: linear-gradient(to bottom, #ffffff, #f0fdfd);
  position: relative;
  z-index: 10;
}

/* Sourcing Assessment Specifics */
.tdh-passport-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.tdh-progress-wrapper {
  margin-bottom: 50px;
}

.tdh-step {
  padding: 20px;
  border-radius: 15px;
  border: 2px solid var(--tdh-border);
  background: var(--tdh-white);
  transition: var(--tdh-transition);
}

.tdh-step.active {
  border-color: var(--tdh-teal);
  background: rgba(12, 184, 182, 0.05);
}

/* Support for Hero and Home */
.tdh-hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  border-radius: 0 0 60px 60px;
  margin-bottom: 60px;
  padding: 80px 0;
}

/* Forms & Inputs */
.tdh-field {
  margin-bottom: 25px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tdh-field label {
  font-size: 14px;
  font-weight: 700;
  color: var(--tdh-dark);
}

.tdh-field input,
.tdh-field select,
.tdh-field textarea {
  background: #fdfdfd;
  border: 1.5px solid var(--tdh-border);
  padding: 18px;
  border-radius: 16px;
  font-size: 15px;
  transition: var(--tdh-transition);
  width: 100%;
}

.tdh-field input:focus,
.tdh-field select:focus,
.tdh-field textarea:focus {
  border-color: var(--tdh-teal);
  background: var(--tdh-white);
  outline: none;
  box-shadow: 0 10px 20px rgba(12, 184, 182, 0.05);
}

.tdh-input-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  margin-bottom: 25px;
}

/* Contact Wrapper Styles */
.tdh-contact-wrapper {
  background: var(--tdh-white);
  border-radius: var(--tdh-radius);
  padding: 60px;
  box-shadow: var(--tdh-shadow-md);
  border: 1px solid var(--tdh-border);
  max-width: 1000px;
  margin: 0 auto;
}

.tdh-form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.tdh-form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Portal Styles */
.tdh-luxury-portal {
  display: grid;
  grid-template-columns: 320px 1fr;
  height: 850px;
  background: var(--tdh-white);
  border-radius: 40px;
  overflow: hidden;
  box-shadow: var(--tdh-shadow-lg);
  border: 1px solid var(--tdh-border);
  position: relative;
}

.portal-sidebar {
  background: var(--tdh-dark);
  color: var(--tdh-white);
  padding: 40px;
  display: flex;
  flex-direction: column;
  transition: var(--tdh-transition);
}

.portal-main {
  display: flex;
  flex-direction: column;
  background: var(--tdh-light);
  overflow: hidden;
}

.portal-header {
  padding: 40px 50px;
  background: var(--tdh-white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--tdh-border);
}

.portal-content-scroll {
  padding: 50px;
  overflow-y: auto;
  flex-grow: 1;
}

.portal-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 16px 20px;
  border-radius: 15px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: var(--tdh-transition);
}

.nav-item.active {
  background: var(--tdh-teal);
  color: var(--tdh-white);
  box-shadow: 0 10px 20px rgba(12, 184, 182, 0.2);
}

.nav-item:hover:not(.active) {
  background: rgba(255, 255, 255, 0.05);
  color: var(--tdh-white);
}

.stat-card-luxury {
  background: var(--tdh-white);
  padding: 30px;
  border-radius: 30px;
  border: 1px solid var(--tdh-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: var(--tdh-transition);
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

/* RESPONSIVE FIXES */
@media (max-width: 992px) {
  .tdh-section-header h2 {
    font-size: 36px;
  }

  .journey-media {
    height: 220px;
  }

  .tdh-hero {
    min-height: 70vh;
    border-radius: 0 0 40px 40px;
  }
}

@media (max-width: 768px) {
  .tdh-section-header h2 {
    font-size: 32px;
  }

  .journeys-grid,
  .tiers-grid {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .tdh-card {
    padding: 30px 20px;
  }

  .tdh-btn {
    width: 100%;
  }

  /* Remove the hacky breakouts */
  .designers-hub [style*="width: 100vw"],
  .tdh-enrollment-container,
  .tdh-contact-wrapper,
  .tdh-luxury-portal,
  .tdh-club-container {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    left: 0 !important;
    right: 0 !important;
    border-radius: 0 !important;
  }

  .tdh-input-grid,
  .tdh-form-row,
  .overview-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .tdh-luxury-portal {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100vh;
  }

  .portal-sidebar {
    position: fixed;
    top: 0;
    left: -320px;
    bottom: 0;
    width: 320px;
    z-index: 1000;
    box-shadow: 20px 0 50px rgba(0, 0, 0, 0.2);
  }

  .portal-sidebar.mobile-active {
    left: 0;
  }

  .portal-header {
    padding: 80px 20px 30px;
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .tdh-section-header h2 {
    font-size: 26px;
  }
}

/* RTL Adjustment */
.tdh-rtl .dashicons {
  transform: rotate(180deg);
}

.tdh-rtl .tdh-hero-content {
  text-align: right;
}

.portal-mobile-toggle {
  display: none;
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 100;
  background: var(--tdh-dark);
  color: var(--tdh-white);
  border: none;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
}

.portal-close-sidebar {
  display: none;
  position: absolute;
  top: 20px;
  right: 20px;
  color: var(--tdh-white);
  background: none;
  border: none;
  font-size: 30px;
  cursor: pointer;
}

.portal-brand {
  margin-bottom: 50px;
  text-align: center;
  position: relative;
}

.portal-logo {
  height: 40px;
  filter: brightness(0) invert(1);
}

.sidebar-user {
  text-align: center;
  margin-bottom: 40px;
}

.user-avatar-wrapper {
  position: relative;
  display: inline-block;
}

.user-avatar-wrapper img {
  border-radius: 20px;
  border: 2px solid var(--tdh-teal);
  padding: 3px;
}

.status-indicator {
  position: absolute;
  bottom: 5px;
  right: 5px;
  width: 12px;
  height: 12px;
  background: var(--tdh-accent);
  border: 2px solid var(--tdh-dark);
  border-radius: 50%;
}

/* Badges */
.tdh-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.tdh-badge-teal,
.tdh-badge-gold {
  background: rgba(110, 190, 68, 0.15);
  color: var(--tdh-accent);
  border: 1px solid var(--tdh-accent);
}

.tdh-badge-primary {
  background: var(--tdh-primary);
  color: white;
}

@media (max-width: 1100px) {

  .portal-mobile-toggle,
  .portal-close-sidebar {
    display: block;
  }
}

/* ═══════════════════════════════════════
   PREMIUM VISUAL ENHANCEMENTS v2.3
   Micro-animations, glassmorphism, shimmer
   ═══════════════════════════════════════ */

/* --- Entrance Animations --- */
@keyframes tdh-fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes tdh-fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.92);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes tdh-shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

@keyframes tdh-float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes tdh-pulse-glow {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(12, 184, 182, 0.3);
  }

  50% {
    box-shadow: 0 0 25px 8px rgba(12, 184, 182, 0.15);
  }
}

@keyframes tdh-gradient-shift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* --- Scroll Reveal (Disabled) --- */
.tdh-reveal {
  opacity: 1;
  transform: none;
}

.tdh-reveal.tdh-visible {
  opacity: 1;
  transform: translateY(0);
}

.tdh-reveal-delay-1 {
  transition-delay: 0.1s;
}

.tdh-reveal-delay-2 {
  transition-delay: 0.2s;
}

.tdh-reveal-delay-3 {
  transition-delay: 0.3s;
}

.tdh-reveal-delay-4 {
  transition-delay: 0.4s;
}

/* --- Section Header — Animated Underline --- */
.tdh-section-header h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  margin: 20px auto 0;
  background: linear-gradient(90deg, transparent, var(--tdh-teal), transparent);
  border-radius: 10px;
}

/* --- Premium Shimmer Button --- */
.tdh-btn-primary {
  position: relative;
  overflow: hidden;
}

.tdh-btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(255, 255, 255, 0.15) 50%,
      transparent 100%);
  transition: left 0.6s ease;
}

.tdh-btn-primary:hover::after {
  left: 100%;
}

/* --- Cards — Enhanced Hover with Glow --- */
.tdh-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg,
      rgba(12, 184, 182, 0.04) 0%,
      transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.tdh-card:hover::before {
  opacity: 1;
}

/* --- Journey Cards — Premium Gradient Border on Hover --- */
.journey-card-premium {
  position: relative;
}

.journey-card-premium::after {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(135deg,
      var(--tdh-teal),
      var(--tdh-accent),
      var(--tdh-teal));
  background-size: 200% 200%;
  opacity: 0;
  transition: opacity 0.5s;
}

.journey-card-premium:hover::after {
  opacity: 1;
  animation: tdh-gradient-shift 3s ease infinite;
}

/* --- Tier Cards — Luxury Gradient Top Strip --- */
.tier-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--tdh-teal), transparent);
  border-radius: 0 0 10px 10px;
  opacity: 0;
  transition: all 0.4s;
}

.tier-card:hover::before {
  opacity: 1;
  left: 10%;
  right: 10%;
}

.tier-card {
  position: relative;
  overflow: hidden;
}

.tier-card.highlighted::before {
  opacity: 1;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--tdh-teal), #6ebe44, var(--tdh-teal));
}

/* --- Glassmorphism Feature Box --- */
.tdh-glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

/* --- Floating Orb Decoration (for hero sections) --- */
.tdh-hero::before {
  content: "";
  position: absolute;
  top: 10%;
  right: 5%;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle,
      rgba(12, 184, 182, 0.08) 0%,
      transparent 70%);
  animation: tdh-float 8s ease-in-out infinite;
  pointer-events: none;
}

.tdh-hero::after {
  content: "";
  position: absolute;
  bottom: 15%;
  left: 8%;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle,
      rgba(110, 190, 68, 0.06) 0%,
      transparent 70%);
  animation: tdh-float 10s ease-in-out infinite reverse;
  pointer-events: none;
}

/* --- Luxury Badge Pulse --- */
.tdh-badge-teal,
.tdh-badge-gold {
  animation: tdh-pulse-glow 3s ease-in-out infinite;
}

/* --- Form Focus Glow --- */
.tdh-field input:focus,
.tdh-field select:focus,
.tdh-field textarea:focus {
  border-color: var(--tdh-teal);
  box-shadow:
    0 0 0 4px rgba(12, 184, 182, 0.1),
    0 10px 20px rgba(12, 184, 182, 0.05);
}

/* --- Portal Nav Item — Active Marker --- */
.nav-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 60%;
  background: var(--tdh-teal);
  border-radius: 0 4px 4px 0;
}

/* --- Scroll Progress Bar --- */
.tdh-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--tdh-teal), #6ebe44);
  z-index: 100000;
  transition: width 0.1s;
}

/* --- Loading Skeleton --- */
.tdh-skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: tdh-shimmer 1.5s ease-in-out infinite;
  border-radius: 8px;
}

/* --- Consent Banner Enhancement --- */
.tdh-consent-banner {
  animation: tdh-fadeInUp 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

/* --- Dark Mode Ready (for future) --- */
@media (prefers-color-scheme: dark) {
  .designers-hub {
    /* Dark mode variables ready */
    --tdh-dark-override: true;
  }
}

/* --- Print Styles --- */
@media print {

  .tdh-consent-banner,
  .tdh-mobile-nav,
  .tdh-scroll-progress,
  .tdh-app-sidebar,
  .tdh-sidebar-overlay {
    display: none !important;
  }
}

/* ═══════════════════════════════════════
   EXPERT CARDS & SEARCH UI (UNIFIED)
   ═══════════════════════════════════════ */

.tdh-experts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.tdh-expert-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
}

.tdh-expert-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(154, 168, 146, 0.15);
  border-color: var(--tdh-gold);
}

.tdh-doc-image-wrapper {
  height: 380px;
  position: relative;
  overflow: hidden;
  background: #f7f5f2;
}

.tdh-doc-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.tdh-expert-card:hover .tdh-doc-image-wrapper img {
  transform: scale(1.05);
}

.tdh-doc-badge-exp {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--tdh-primary);
  color: #fff;
  padding: 6px 14px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tdh-doc-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.tdh-doc-content h4 {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 5px 0;
  color: var(--tdh-text-dark);
}

.tdh-doc-specialty {
  color: var(--tdh-primary);
  font-weight: 500;
  font-size: 13px;
  margin: 0 0 15px 0;
}

.tdh-doc-meta {
  margin-bottom: 20px;
  font-size: 12px;
  color: #888;
}

.tdh-doc-langs {
  display: flex;
  align-items: center;
  gap: 5px;
}

.tdh-doc-langs::before {
  content: "🌐";
  font-size: 14px;
}

.tdh-doc-actions {
  display: flex;
  gap: 12px;
  margin-top: auto;
}

.tdh-btn-sage-small {
  background: var(--tdh-primary);
  color: #fff;
  padding: 10px 15px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  flex: 1;
  text-align: center;
  transition: background 0.3s;
}

.tdh-btn-sage-small:hover {
  background: var(--tdh-secondary);
}

.tdh-btn-link-small {
  padding: 10px 15px;
  font-size: 12px;
  font-weight: 700;
  color: var(--tdh-text-dark);
  text-decoration: none;
  transition: color 0.3s;
}

.tdh-btn-link-small:hover {
  color: var(--tdh-primary);
}

/* Search & Filter Bar */
.tdh-specialists-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  background: #fff;
  padding: 25px 30px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
  margin-bottom: 50px;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.tdh-search-box {
  flex: 1;
  display: flex;
  background: #f7f7f7;
  border-radius: 15px;
  padding: 5px 5px 5px 20px;
  align-items: center;
  border: 1.5px solid transparent;
  transition: all 0.3s;
}

.tdh-search-box:focus-within {
  background: #fff;
  border-color: var(--tdh-primary);
  box-shadow: 0 10px 20px rgba(154, 168, 146, 0.1);
}

.tdh-search-box input {
  background: transparent;
  border: none;
  flex: 1;
  padding: 10px 0;
  font-size: 14px;
  outline: none;
}

.tdh-search-btn {
  background: var(--tdh-primary);
  color: #fff;
  border: none;
  padding: 10px 25px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s;
}

.tdh-search-btn:hover {
  background: var(--tdh-secondary);
}

.tdh-filter-bar {
  display: flex;
  align-items: center;
  gap: 15px;
}

.tdh-filter-label {
  font-size: 12px;
  font-weight: 800;
  color: #bbb;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.tdh-filter-dropdown {
  background: #fff;
  border: 1.5px solid #eee;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.tdh-filter-dropdown:hover {
  border-color: var(--tdh-primary);
  color: var(--tdh-primary);
}

.tdh-active-filter {
  background: rgba(154, 168, 146, 0.1);
  color: var(--tdh-primary);
  padding: 8px 15px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

@media (max-width: 1024px) {
  .tdh-specialists-controls {
    flex-direction: column;
    align-items: stretch;
  }
}