/* FAQ Accordion Custom Styles */

/* Add padding to accordion titles to prevent overlap with icons */
.faq-one-accrodion .accrodion-title h4 {
  padding-right: 30px; /* Add space for the icon */
}

/* Add spacing between images in accordion content */
.faq-one-accrodion .accrodion-content img {
  margin: 10px 0; /* Vertical spacing between images */
  max-width: 100%; /* Ensure images don't overflow */
  height: auto; /* Maintain aspect ratio */
  cursor: pointer; /* Show clickable cursor */
  border-radius: 4px; /* Slight rounding for better appearance */
}

/* Image modal styles */
.image-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  cursor: pointer;
}

.image-modal img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.image-modal .close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

/* Search Styles */
.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  width: 100%;
  padding: 15px 50px 15px 20px;
  border: 2px solid #e9e9ee;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--notech-base);
  box-shadow: 0 0 0 3px rgba(102, 83, 232, 0.1);
}

.search-button {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 50px;
  background: var(--notech-base);
  border: none;
  color: white;
  cursor: pointer;
  border-radius: 0 6px 6px 0;
  transition: background-color 0.3s ease;
}

.search-button:hover {
  background: var(--notech-primary);
}

.clear-button {
  position: absolute;
  right: 50px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #777181;
  cursor: pointer;
  font-size: 18px;
  padding: 5px;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.clear-button:hover {
  background: #f0f0f0;
  color: #333;
}

.search-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
  color: var(--notech-base);
  font-size: 14px;
}

.search-loading i {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Search Results Styles */
.search-results-container {
  margin-top: 30px;
}

.search-results-header {
  text-align: center;
  margin-bottom: 30px;
}

.search-results-header h3 {
  color: var(--notech-black);
  font-size: 24px;
  font-weight: 600;
  margin: 0;
}

.result-count {
  color: var(--notech-base);
  font-weight: 700;
}

.search-category-group {
  margin-bottom: 40px;
}

.category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e9e9ee;
}

.category-header h4 {
  color: var(--notech-black);
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}

.category-count {
  background: var(--notech-base);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

/* Highlight Styles */
.search-highlight {
  background-color: #fff3cd;
  color: #856404;
  padding: 2px 4px;
  border-radius: 3px;
  font-weight: 600;
}

/* Empty State Styles */
.search-empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-state-content {
  max-width: 500px;
  margin: 0 auto;
}

.empty-state-icon {
  font-size: 64px;
  color: #ddd;
  margin-bottom: 20px;
}

.empty-state-content h3 {
  color: var(--notech-black);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 10px;
}

.empty-state-content p {
  color: var(--notech-gray);
  font-size: 16px;
  margin-bottom: 20px;
}

.empty-state-suggestions {
  text-align: left;
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid var(--notech-base);
}

.empty-state-suggestions p {
  margin: 0 0 10px 0;
  font-weight: 600;
  color: var(--notech-black);
}

.empty-state-suggestions ul {
  margin: 0;
  padding-left: 20px;
}

.empty-state-suggestions li {
  color: var(--notech-gray);
  margin-bottom: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .search-input {
    font-size: 16px; /* Prevent zoom on iOS */
  }

  .search-results-header h3 {
    font-size: 20px;
  }

  .category-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .category-header h4 {
    font-size: 18px;
  }
}