

/* Updated hero section background image to use a more reliable placeholder */


.hero-content h1 {
  font-size: 3rem;
  margin: 0 0 10px 0;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
  font-size: 1.2rem;
  margin: 0;
  opacity: 0.9;
}

/* Added search and filter section styles */
.search-filter-section {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.search-bar {
  position: relative;
  margin-bottom: 20px;
}

.search-bar i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 16px;
}

.search-bar input {
  width: 100%;
  padding: 12px 15px 12px 45px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.search-bar input:focus {
  outline: none;
  border-color: #d4af37;
}

.filter-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 20px;
  border: 2px solid #e0e0e0;
  background: white;
  color: #666;
  border-radius: 25px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  border-color: #d4af37;
  color: #d4af37;
}

.filter-btn.active {
  background: #d4af37;
  border-color: #d4af37;
  color: white;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}

h2 {
  margin: 20px 0;
  font-size: 22px;
}

h3 {
  margin-bottom: 15px;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-height: 1800px;
  overflow-y:scroll;
  border:2px solid rgba(75,75,75,0.15);
  border-radius: 8px;
}

.partner-card {
  background: white;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.partner-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.partner-card.hidden {
  display: none;
}

.partner-header {
  display: flex;
  align-items: center;
  gap: 15px;
}

.partner-header img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.partner-role {
  font-size: 13px;
  color: #777;
}

.rating {
  color: #d4af37;
  font-weight: bold;
  font-size: 14px;
}

.partner-details {
  font-size: 13px;
  color: #555;
  margin: 5px 0;
}

.partner-details i {
  margin-right: 5px;
  color: #999;
}

.partner-actions {
  margin-top: auto;
}

/* Added styles for partner definitions */
.partner-definition {
  background: #f8f9fa;
  padding: 10px;
  border-radius: 6px;
  margin: 10px 0;
  border-left: 3px solid #d4af37;
}

.partner-definition p {
  margin: 0;
  font-size: 12px;
  color: #555;
  line-height: 1.4;
}

.partner-definition strong {
  color: #d4af37;
  font-weight: 600;
}

.contact-btn {
  background: #d4af37;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  margin-right: 5px;
  transition: background-color 0.3s ease;
}

.contact-btn:hover {
  background: #b8941f;
}

.profile-btn {
  border: 1px solid #ccc;
  background: white;
  color: #333;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.profile-btn:hover {
  border-color: #d4af37;
  color: #d4af37;
}

.type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.type-card {
  background: white;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  font-size: 14px;
  transition: transform 0.2s ease;
}

.type-card:hover {
  transform: translateY(-2px);
}

.type-card h4 {
  margin: 0 0 8px;
}

.type-card a {
  display: inline-block;
  margin-top: 8px;
  font-weight: bold;
  font-size: 13px;
  text-decoration: none;
  color: #d4af37;
  transition: color 0.3s ease;
}

.type-card a:hover {
  color: #b8941f;
}

.why-section {
  background: white;
  padding: 20px;
  border-radius: 8px;
  display: flex;
  gap: 20px;
  margin-top: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  flex-wrap: wrap;
}

.why-section img {
  width: 300px;
  border-radius: 8px;
  object-fit: cover;
}

.why-section ul {
  padding-left: 20px;
  margin: 0;
}

.why-section li {
  margin-bottom: 8px;
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .filter-buttons {
    justify-content: center;
  }

  .partner-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .why-section {
    flex-direction: column;
   
  }

  .why-section img {
    width: 100%;
  }
}


/* Modal styles */
.modal-overlay {
  position: fixed;
  inset: 0;
  top:0;
  left:0;
  width:100%;
  height: 100vh;
  background: rgba(0,0,0,0.8);
  display:none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: linear-gradient(180deg, #ffffff 0%, #fbfbfb 100%);
  width: 480px;
  max-width: calc(100% - 32px);
  border-radius: 14px;
  max-height: 80vh;
  overflow-y: scroll;
  padding: 20px 22px;
  box-shadow: 0 18px 50px rgba(16,24,40,0.25);
  position: relative;
  transform: translateY(8px) scale(.98);
}


.modal .modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal .modal-header img {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid rgba(212,175,55,0.12);
  box-shadow: 0 6px 20px rgba(22,28,45,0.06);
}

/* Generic avatar used across the site (replaces partner photos) */
.avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg,#eef2ff,#f3f4f6);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  font-weight: 700;
  letter-spacing: 0.6px;
  font-size: 18px;
  border: 1px solid rgba(16,24,40,0.04);
}

.avatar.avatar-lg {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  font-size: 20px;
}

.partner-header .avatar { margin-right: 12px }

.modal .modal-body {
  margin-top: 12px;
  font-size: 14px;
  color: #444;
}

.modal .modal-row {
  margin: 8px 0;
}

.modal .close-btn {
  position: absolute;
  right: 10px;
  top: 10px;
  background: transparent;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #666;
}

.modal .close-btn:hover {
  color: #111;
}

.modal .modal-row i {
  color: #d4af37;
  width: 18px;
  display: inline-block;
  text-align: center;
  margin-right: 8px;
}

.modal .contact-btn {
  background: linear-gradient(90deg,#2563eb,#1d4ed8);
  color: white;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  box-shadow: 0 8px 26px rgba(37,99,235,0.16);
}

.modal .contact-btn i { font-size: 14px }

.modal .profile-btn {
  background: #fff;
  border: 1px solid rgba(212,175,55,0.14);
  color: #6b4d00;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.modal .profile-btn i { font-size: 14px }

.modal a#modalEmail, .modal a#modalPhone {
  color: #1e293b;
  text-decoration: none;
  margin-left: 6px;
}

.modal a#modalEmail:hover, .modal a#modalPhone:hover {
  text-decoration: underline;
}
