/**
 * Partners Directory Public Page Styles
 * Modern, responsive card grid design
 */

/* Partners Directory Section */
.partners-directory-section {
  background-color: #ffffff;
  min-height: 60vh;
}

/* Filters Sidebar */
.partners-filters {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  position: sticky;
  top: 20px;
}

.partners-filters h5 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 1rem;
}

.partners-filters h6 {
  font-size: 1rem;
  font-weight: 600;
  color: #555;
  margin-bottom: 0.75rem;
}

/* Search Box */
.search-box {
  position: relative;
  margin-bottom: 1.5rem;
}

.search-box .form-control {
  padding-right: 45px;
  border-radius: 6px;
  border: 1px solid #ddd;
  font-size: 0.95rem;
}

.search-box .form-control:focus {
  border-color: #4a90e2;
  box-shadow: 0 0 0 0.2rem rgba(74, 144, 226, 0.25);
}

.search-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #666;
  padding: 5px 10px;
  cursor: pointer;
  transition: color 0.2s;
}

.search-btn:hover {
  color: #4a90e2;
}

/* Category Filter */
.filter-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-item {
  display: block;
  padding: 0.5rem 0.75rem;
  color: #555;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s;
  font-size: 0.9rem;
}

.filter-item:hover {
  background-color: #e9ecef;
  color: #333;
  text-decoration: none;
}

.filter-item.active {
  background-color: #4a90e2;
  color: #fff;
  font-weight: 500;
}

/* Partners Grid */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 0;
}

/* Partner Card */
.partner-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.partner-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
  border-color: #4a90e2;
}

.partner-card-header {
  padding: 1.5rem;
  text-align: center;
  background: #f8f9fa;
  border-bottom: 1px solid #e0e0e0;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-logo {
  max-width: 120px;
  max-height: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.partner-logo-placeholder {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
  color: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 600;
}

.partner-card-body {
  padding: 1.25rem;
  flex-grow: 1;
}

.partner-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.partner-category {
  display: inline-block;
  background: #e3f2fd;
  color: #1976d2;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.partner-location {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.partner-location .flaticon-location-pin {
  font-size: 0.9rem;
  color: #999;
}

.partner-description {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.5;
  margin-bottom: 0;
}

.partner-card-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid #e0e0e0;
  background: #fafafa;
}

.partner-card-footer .btn {
  font-weight: 500;
  border-radius: 6px;
}

/* No Partners Message */
.no-partners {
  text-align: center;
  padding: 3rem 1rem;
  color: #666;
}

.no-partners p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 991px) {
  .partners-filters {
    position: static;
    margin-bottom: 2rem;
  }

  .partners-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.25rem;
  }
}

@media (max-width: 767px) {
  .partners-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .partner-card-header {
    min-height: 100px;
    padding: 1rem;
  }

  .partner-logo {
    max-width: 100px;
    max-height: 60px;
  }
}

@media (max-width: 575px) {
  .partners-filters {
    padding: 1rem;
  }

  .partners-grid {
    gap: 0.75rem;
  }
}

/* New Partners Directory Styles */
.partners-search-input {
  border-radius: 8px;
  border: 1px solid #E2E8F0;
  padding: 12px 16px 12px 48px;
  font-size: 18px;
  font-weight: 400;
  color: #6B7280;
  width: 100%;
  max-width: 400px;
  outline: none;
  box-shadow: none;
}

.partners-search-input::placeholder {
  color: #6B7280;
}

.partners-search-input:focus {
  border-color: #3B82F6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.partners-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #94A3B8;
  font-size: 18px;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 4px 0;
  color: #64748B;
  font-size: 18px;
  font-weight: 400;
  transition: all 0.2s;
  text-decoration: none !important;
}

.filter-option:hover {
  color: #1E293B;
}

.filter-option.active {
  color: #3B82F6;
  font-weight: 500;
}

.checkbox-mock {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 2px solid #CBD5E1;
  background: #fff;
}

.radio-mock {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #CBD5E1;
  background: #fff;
  position: relative;
}

.filter-option.active .radio-mock {
  border-color: #3B82F6;
  background: #3B82F6;
}

.app-card {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  height: 100%;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 0px 2px 6px 0px #1018280F;
  align-items: center;
}

.app-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  border-color: #CBD5E1;
}

.app-icon-wrapper {
  width: 88px;
  height: 88px;
  border-radius: 16px;
  background: #DBEAFE;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.app-icon {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.app-title {
  font-size: 24px;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 12px;
}

.app-description {
  font-size: 16px;
  color: #94A3B8;
  line-height: 1.5;
  margin: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.results-count {
  color: #94A3B8;
  font-size: 14px;
  margin-bottom: 24px;
}

/* --- New Index Sections --- */

/* Featured Banner */
.featured-banner-section {
  padding: 20px 0px 120px 0;
}

.featured-banner {
  background: url("./images/hero-24.jpg") no-repeat center center;
  background-size: cover;
  border-radius: 16px;
  padding: 30px 40px;
  display: flex;
  align-items: center;
  color: #fff;
  box-shadow: 0 10px 30px rgba(33, 150, 243, 0.15);
}

.featured-icon-box {
  width: 60px;
  height: 60px;
  background: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 24px;
  flex-shrink: 0;
}

.featured-icon-box span {
  /* Placeholder logo text */
  color: #2196f3;
  font-weight: 300;
  font-size: 18px;
}

.featured-content {
  flex-grow: 1;
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: center;
}

.featured-text h4 {
  color: #fff;
  margin: 0 0 4px;
  font-size: 24px;
  font-weight: 700;
}

.featured-text .subtitle {
  opacity: 0.9;
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 4px;
  display: block;
}

.featured-desc {
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  margin: 0;
  max-width: 600px;
  line-height: 1.5;
}

/* Looking For Something Else */
.looking-else-section {
  padding-bottom: 80px;
  background-color: #fff;
}

.cards-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.action-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 40px 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.action-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.action-icon {
  width: 80px;
  height: 80px;
  background: #e3f2fd;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: #2196f3;
  font-size: 28px;
}

.action-title {
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 12px;
  color: #1a1a1a;
}

.action-text {
  color: #6B7280;
  margin-bottom: 24px;
  font-size: 16px;
  line-height: 1.6;
  min-height: 48px;
}

.btn-action {
  background-color: #3EB1FF;
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.2s;
}

.btn-action:hover {
  transform: translateY(-2px);
  color: #fff;
}

/* Testimonials */
.testimonials-section {
  padding: 80px 0;
  background-color: #fff;
}

.testimonials-header {
  margin-bottom: 50px;
}

.testimonials-header p {
  font-size: 16px;
  font-weight: 400;
  margin-top: 20px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.testimonial-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 16px;
  padding: 24px 16px;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.testimonial-quote-icon {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 0;
}

.testimonial-quote {
  font-size: 18px;
  color: #4a5568;
  line-height: 1.6;
  margin-bottom: 20px;
  position: relative;
  font-weight: 400;
  flex-grow: 1;
  z-index: 1;
}

.testimonial-author strong {
  display: block;
  color: #1a1a1a;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 5px;
}

.testimonial-author span {
  color: #718096;
  font-size: 16px;
}

/* Responsive */
@media (max-width: 991px) {
  .featured-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .featured-desc {
    margin-top: 10px;
    margin-bottom: 10px;
  }

  .cards-grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .featured-banner {
    flex-direction: column;
    text-align: center;
  }

  .featured-icon-box {
    margin-right: 0;
    margin-bottom: 16px;
  }

  .featured-content {
    display: flex;
    text-align: center;
    align-items: center;
  }
}

/* Features Ticker Ticker */
.ticker-view {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 40px 0;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: scroll-ticker 40s linear infinite;
}

@keyframes scroll-ticker {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.ticker-item {
  padding: 8px 24px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  margin-right: 20px;
  white-space: nowrap;
  display: flex !important;
  align-items: center;
}

.ticker-item span {
  color: #fff;
  font-weight: 400;
  font-size: 18px;
}

.enterprise-grade-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  margin-bottom: 20px 0;
}

.enterprise-grade-container span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #EF4444;
}