/*
 * ============================================================
 * Suvidha Talent — Partner Ecosystem Styles
 * ============================================================
 * FILE PATH: /wp-content/themes/astra-child/partner-styles.css
 *
 * If you do NOT have a child theme:
 *   1. Go to Appearance → Customise → Additional CSS
 *   2. Paste the ENTIRE contents of this file there
 * ============================================================
 */

/* ── ROOT TOKENS (match Suvidha Talent brand) ── */
:root {
  --st-navy:      #0A1628;
  --st-navy2:     #0F1E30;
  --st-navy3:     #1a2d47;
  --st-orange:    #D95B1A;
  --st-orange-m:  #F2813A;
  --st-orange-lt: #FEF0E6;
  --st-gray:      #F5F7FB;
  --st-border:    #E2E8F0;
  --st-text:      #1A2332;
  --st-muted:     #5A6778;
  --st-dark-txt:  #8BAABF;
}

/* ══════════════════════════════════════════════
   PARTNER DIRECTORY  [partner_directory]
══════════════════════════════════════════════ */

#suvidha-partner-directory {
  max-width: 1180px;
  margin: 0 auto;
  padding: 36px 20px 60px;
}

/* Layout */
.spd-layout {
  display: flex;
  gap: 36px;
  align-items: flex-start;
}

/* ── Sidebar ── */
.spd-sidebar {
  width: 230px;
  flex-shrink: 0;
  position: sticky;
  top: 110px;
}

.spd-search-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--st-border);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 24px;
  transition: border-color 0.2s;
}
.spd-search-wrap:focus-within { border-color: var(--st-orange); }
.spd-search-wrap svg { color: var(--st-muted); flex-shrink: 0; }
.spd-search-wrap input {
  border: none;
  outline: none;
  font-size: 14px;
  color: var(--st-text);
  background: transparent;
  width: 100%;
}

.spd-filter-group { margin-bottom: 28px; }

.spd-filter-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 700;
  color: var(--st-text);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--st-border);
}

.spd-filter-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  cursor: pointer;
  font-size: 14px;
  color: var(--st-muted);
  transition: color 0.15s;
}
.spd-filter-opt:hover { color: var(--st-text); }
.spd-filter-opt input  { accent-color: var(--st-orange); width: 15px; height: 15px; cursor: pointer; }
.spd-filter-opt input:checked + span { color: var(--st-text); font-weight: 500; }

.spd-clear-btn {
  width: 100%;
  padding: 9px;
  background: transparent;
  border: 1px solid var(--st-border);
  border-radius: 6px;
  font-size: 13px;
  color: var(--st-muted);
  cursor: pointer;
  transition: background 0.15s;
}
.spd-clear-btn:hover { background: var(--st-gray); color: var(--st-text); }

/* ── Main ── */
.spd-main { flex: 1; min-width: 0; }

.spd-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.spd-count { font-size: 14px; color: var(--st-muted); }
.spd-sort {
  border: 1px solid var(--st-border);
  border-radius: 6px;
  padding: 7px 12px;
  font-size: 13px;
  color: var(--st-text);
  background: #fff;
  cursor: pointer;
}

/* ── Cards ── */
.spd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.spd-card {
  background: #fff;
  border: 1px solid var(--st-border);
  border-radius: 12px;
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}
.spd-card:hover {
  border-color: var(--st-orange);
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.08);
}
.spd-card.hidden { display: none; }
.spd-card a {
  display: block;
  padding: 20px 18px;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.spd-card-logo { margin-bottom: 12px; min-height: 44px; display: flex; align-items: center; }
.spd-logo-img  { max-height: 40px; width: auto; display: block; object-fit: contain; }
.spd-logo-fb   {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.spd-card-name  { font-size: 15px; font-weight: 700; color: var(--st-text); margin-bottom: 5px; }
.spd-card-badge {
  display: inline-block;
  background: var(--st-orange-lt);
  color: #8B3A12;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 99px;
  margin-bottom: 8px;
}
.spd-card-desc {
  font-size: 13px;
  color: var(--st-muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}
.spd-card-cta { font-size: 12px; color: var(--st-orange); font-weight: 600; }

.spd-empty, .spd-no-results {
  padding: 48px 20px;
  text-align: center;
  color: var(--st-muted);
  grid-column: 1 / -1;
}
.spd-no-results a { color: var(--st-orange); }

/* ── Featured grid  [featured_partners] ── */
.spd-feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.spd-feat-card {
  background: #fff;
  border: 1px solid var(--st-border);
  border-radius: 12px;
  transition: border-color 0.2s, transform 0.15s;
}
.spd-feat-card:hover { border-color: var(--st-orange); transform: translateY(-3px); }
.spd-feat-card a { display: block; padding: 20px 18px; text-decoration: none; color: inherit; }
.spd-feat-logo { max-height: 36px; width: auto; display: block; margin-bottom: 12px; object-fit: contain; }


/* ══════════════════════════════════════════════
   SINGLE PARTNER PROFILE PAGE
══════════════════════════════════════════════ */

.sps-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

/* Breadcrumb */
.sps-breadcrumb {
  padding: 14px 0;
  font-size: 13px;
  color: var(--st-muted);
  border-bottom: 1px solid var(--st-border);
}
.sps-breadcrumb a { color: var(--st-orange); text-decoration: none; }
.sps-breadcrumb a:hover { text-decoration: underline; }
.sps-breadcrumb .sep { margin: 0 6px; }

/* Hero */
.sps-hero {
  padding: 36px 0 28px;
  display: flex;
  align-items: flex-start;
  gap: 28px;
  border-bottom: 1px solid var(--st-border);
}
.sps-hero-logo-wrap {
  flex-shrink: 0;
  width: 88px;
  height: 88px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--st-border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.sps-hero-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  background: #fff;
}
.sps-hero-logo-fb {
  width: 88px;
  height: 88px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  flex-shrink: 0;
}
.sps-hero-info { flex: 1; }
.sps-hero-info h1 {
  font-size: 30px;
  font-weight: 700;
  color: var(--st-navy);
  margin: 0 0 8px;
  line-height: 1.2;
}
.sps-tagline {
  font-size: 16px;
  color: var(--st-muted);
  line-height: 1.65;
  margin-bottom: 14px;
  max-width: 520px;
}
.sps-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.sps-badge  { padding: 4px 12px; border-radius: 99px; font-size: 12px; font-weight: 600; }
.sps-badge-type   { background: var(--st-orange-lt); color: #8B3A12; }
.sps-badge-region { background: #EBF4FF; color: #1a4e8a; }
.sps-badge-year   { background: #E8F5E9; color: #1B5E20; }
.sps-website-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--st-orange);
  text-decoration: none;
  font-weight: 600;
}
.sps-website-link:hover { text-decoration: underline; }

/* Body grid */
.sps-body {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  padding-top: 36px;
}

/* Main column */
.sps-section-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--st-muted);
  font-weight: 700;
  margin-bottom: 14px;
}
.sps-about {
  font-size: 15px;
  color: var(--st-muted);
  line-height: 1.75;
  margin-bottom: 32px;
}

.sps-details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 32px; }
.sps-detail-box   { background: var(--st-gray); border-radius: 10px; padding: 20px; }
.sps-detail-box h3 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--st-muted);
  font-weight: 700;
  margin-bottom: 14px;
}
.sps-detail-list { list-style: none; margin: 0; padding: 0; }
.sps-detail-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 14px;
  color: var(--st-text);
  padding: 6px 0;
  border-bottom: 1px solid var(--st-border);
  line-height: 1.45;
}
.sps-detail-list li:last-child { border: none; }
.sps-detail-list li .li-icon { color: var(--st-orange); font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.sps-benefit-list .li-icon::before { content: '★'; }
.sps-service-list .li-icon::before { content: '✓'; }

.sps-tags-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.sps-tag {
  padding: 6px 14px;
  background: var(--st-gray);
  border: 1px solid var(--st-border);
  border-radius: 99px;
  font-size: 13px;
  color: var(--st-muted);
}

/* Sidebar */
.sps-contact-box {
  background: var(--st-navy);
  border-radius: 14px;
  padding: 26px;
  margin-bottom: 16px;
}
.sps-contact-box h3 { font-size: 17px; font-weight: 700; color: #fff; margin-bottom: 8px; line-height: 1.3; }
.sps-contact-box p  { font-size: 13px; color: var(--st-dark-txt); line-height: 1.6; margin-bottom: 18px; }

.sps-contact-btn {
  display: block;
  width: 100%;
  padding: 13px;
  background: var(--st-orange);
  color: #fff;
  border: none;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  margin-bottom: 10px;
  transition: background 0.15s;
}
.sps-contact-btn:hover { background: #b84d16; color: #fff; }

.sps-visit-btn {
  display: block;
  width: 100%;
  padding: 12px;
  background: transparent;
  color: var(--st-dark-txt);
  border: 1px solid #2a3d52;
  border-radius: 7px;
  font-size: 14px;
  text-align: center;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}
.sps-visit-btn:hover { border-color: #4a6d8a; color: #fff; }

.sps-facts-box { background: var(--st-gray); border-radius: 14px; padding: 20px; }
.sps-facts-box h3 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--st-muted);
  font-weight: 700;
  margin-bottom: 14px;
}
.sps-fact-row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: var(--st-text);
  padding: 6px 0;
  border-bottom: 1px solid var(--st-border);
}
.sps-fact-row:last-child { border: none; }
.sps-fact-dot { width: 6px; height: 6px; background: var(--st-orange); border-radius: 50%; flex-shrink: 0; }

/* Bottom CTA */
.sps-cta-bar {
  background: var(--st-gray);
  border-radius: 12px;
  padding: 36px;
  text-align: center;
  margin-top: 48px;
}
.sps-cta-bar p { font-size: 15px; color: var(--st-muted); margin-bottom: 18px; }
.sps-cta-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.sps-cta-primary {
  padding: 13px 26px;
  background: var(--st-orange);
  color: #fff;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.sps-cta-primary:hover { background: #b84d16; color: #fff; }
.sps-cta-secondary {
  padding: 12px 26px;
  background: transparent;
  color: var(--st-navy);
  border: 1px solid var(--st-border);
  border-radius: 7px;
  font-size: 14px;
  text-decoration: none;
}
.sps-cta-secondary:hover { border-color: var(--st-orange); color: var(--st-orange); }


/* ══════════════════════════════════════════════
   CONTACT MODAL
══════════════════════════════════════════════ */

#spd-modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.55);
  z-index: 999999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
#spd-modal-overlay.spd-active { display: flex; }

#spd-modal {
  background: #fff;
  border-radius: 14px;
  padding: 36px;
  width: 100%;
  max-width: 460px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  animation: spdSlideUp 0.22s ease-out;
}
@keyframes spdSlideUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.spd-modal-close {
  position: absolute;
  top: 16px; right: 18px;
  font-size: 22px;
  cursor: pointer;
  color: var(--st-muted);
  background: none;
  border: none;
  line-height: 1;
  padding: 4px;
}
.spd-modal-close:hover { color: var(--st-text); }

.spd-modal-header {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin-bottom: 14px;
}
.spd-modal-logo {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.spd-modal-partner-nm { font-size: 15px; font-weight: 700; color: var(--st-text); }
.spd-modal-title { font-size: 22px; font-weight: 700; text-align: center; color: var(--st-text); margin-bottom: 4px; }
.spd-modal-subtitle { font-size: 13px; color: var(--st-muted); text-align: center; margin-bottom: 22px; }

.spd-modal-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.spd-modal-field { margin-bottom: 14px; }
.spd-modal-field label { display: block; font-size: 13px; font-weight: 600; color: var(--st-text); margin-bottom: 5px; }
.spd-modal-field label .req { color: #cc3333; margin-left: 2px; }
.spd-modal-field input[type="text"],
.spd-modal-field input[type="email"] {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--st-border);
  border-radius: 7px;
  font-size: 14px;
  color: var(--st-text);
  outline: none;
  background: #fafafa;
  transition: border-color 0.15s;
}
.spd-modal-field input:focus { border-color: var(--st-orange); background: #fff; }

.spd-modal-privacy {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin-bottom: 18px;
  font-size: 11px;
  color: var(--st-muted);
  line-height: 1.55;
}
.spd-modal-privacy input {
  width: 15px; height: 15px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--st-orange);
  cursor: pointer;
}
.spd-modal-privacy a { color: var(--st-navy); }

.spd-modal-submit {
  width: 100%;
  padding: 14px;
  background: var(--st-navy);
  color: #fff;
  border: none;
  border-radius: 7px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}
.spd-modal-submit:hover    { background: #0f2744; }
.spd-modal-submit:disabled { background: #888; cursor: not-allowed; }

.spd-modal-policy-link {
  display: block;
  text-align: center;
  font-size: 12px;
  color: var(--st-muted);
  margin-top: 10px;
  text-decoration: underline;
  cursor: pointer;
}
.spd-modal-error {
  background: #fff3f3;
  border: 1px solid #ffcccc;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 13px;
  color: #cc0000;
  margin-bottom: 14px;
}
.spd-modal-success-view { text-align: center; padding: 16px 0 8px; }
.spd-modal-success-view .spd-success-icon { font-size: 52px; margin-bottom: 14px; }
.spd-modal-success-view h3 { font-size: 22px; font-weight: 700; color: var(--st-text); margin-bottom: 8px; }
.spd-modal-success-view p  { font-size: 14px; color: var(--st-muted); line-height: 1.6; }


/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */

@media (max-width: 900px) {
  .spd-layout { flex-direction: column; }
  .spd-sidebar { width: 100%; position: static; }
  .spd-filter-group { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 16px; }
  .spd-filter-title { grid-column: 1 / -1; }

  .sps-body { grid-template-columns: 1fr; }
  .sps-sidebar { order: -1; }
  .sps-contact-box, .sps-facts-box { max-width: 480px; }

  #spd-modal { padding: 24px; }
  .spd-modal-row { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .spd-grid { grid-template-columns: 1fr 1fr; }
  .sps-hero { flex-direction: column; gap: 16px; }
  .sps-details-grid { grid-template-columns: 1fr; }
  .sps-cta-buttons { flex-direction: column; align-items: center; }
}
