/* Loading animation */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* Card hover effects */
.category-card {
  transition: all 0.3s ease;
}

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

/* Company item container */
.company-item-container {
  transition: all 0.3s ease;
  overflow: hidden;
}

/* Company list item hover effects */
.company-list-item {
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.company-list-item:hover {
  background-color: #f9fafb !important;
  border-left-color: #3b82f6;
}

/* Company details slide-out animation */
.company-details {
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

/* Ensure company details don't get cut off when expanded */
.company-details[style*="max-height"][style*="px"]:not([style*="max-height: 0px"]) {
  min-height: fit-content;
}

.company-details-content {
  transition: all 0.3s ease;
}

/* Company chevron rotation */
.company-chevron {
  transition: transform 0.3s ease;
}

/* Search input focus effect */
.search-input:focus {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  outline: none;
}

/* Global search input enhanced styles */
#global-search-input {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

#global-search-input:focus {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1), 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transform: translateY(-1px);
}

/* Clear search button */
#clear-search {
  transition: all 0.2s ease;
}

#clear-search:hover {
  background-color: #f3f4f6;
  border-radius: 0.375rem;
}

/* Search results view */
#search-results-view {
  animation: fadeIn 0.3s ease-in-out;
}

/* Search sections */
#search-categories-section h3,
#search-companies-section h3 {
  position: relative;
  padding-left: 1rem;
}

#search-categories-section h3::before,
#search-companies-section h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 1.5rem;
  background-color: #3b82f6;
  border-radius: 2px;
}

/* Search result items animation */
#search-categories-grid .category-card,
#search-companies-list .company-item-container {
  animation: slideInUp 0.3s ease-out;
  animation-fill-mode: both;
}

#search-categories-grid .category-card:nth-child(1),
#search-companies-list .company-item-container:nth-child(1) { animation-delay: 0.05s; }
#search-categories-grid .category-card:nth-child(2),
#search-companies-list .company-item-container:nth-child(2) { animation-delay: 0.1s; }
#search-categories-grid .category-card:nth-child(3),
#search-companies-list .company-item-container:nth-child(3) { animation-delay: 0.15s; }
#search-categories-grid .category-card:nth-child(4),
#search-companies-list .company-item-container:nth-child(4) { animation-delay: 0.2s; }
#search-categories-grid .category-card:nth-child(n+5),
#search-companies-list .company-item-container:nth-child(n+5) { animation-delay: 0.25s; }

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* No results state styling */
#no-results-state {
  animation: fadeIn 0.5s ease-in-out;
}

/* Back to categories button */
#back-to-categories {
  transition: all 0.2s ease;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
}

#back-to-categories:hover {
  background-color: #f3f4f6;
  transform: translateX(-2px);
}

/* Sponsored badge styling */
.sponsored-badge {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #92400e;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  border: 2px solid #f59e0b;
  box-shadow: 0 2px 6px 0 rgba(251, 191, 36, 0.3), inset 0 1px 0 0 rgba(255, 255, 255, 0.4);
  transition: all 0.2s ease;
  animation: sponsored-glow 3s ease-in-out infinite;
}

.sponsored-badge:hover {
  background: linear-gradient(135deg, #fffbeb, #f59e0b);
  box-shadow: 0 4px 12px 0 rgba(251, 191, 36, 0.4), inset 0 1px 0 0 rgba(255, 255, 255, 0.5);
  transform: translateY(-1px) scale(1.02);
}

@keyframes sponsored-glow {
  0%, 100% {
    box-shadow: 0 2px 6px 0 rgba(251, 191, 36, 0.3), inset 0 1px 0 0 rgba(255, 255, 255, 0.4);
  }
  50% {
    box-shadow: 0 2px 8px 0 rgba(251, 191, 36, 0.5), inset 0 1px 0 0 rgba(255, 255, 255, 0.5);
  }
}

/* Badge styles */
.tier-badge {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
}

.category-badge {
  font-size: 0.75rem;
  padding: 0.125rem 0.5rem;
  border-radius: 0.375rem;
  background-color: #f3f4f6;
  color: #374151;
  margin-bottom: 6px;
}

/* PIE26 badge animation */
.pie26-badge {
  animation: pulse 2s infinite;
}

/* PIE26 related badges */
.pie26-booth-badge {
  background-color: #fed7aa;
  color: #9a3412;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  border: 1px solid #fdba74;
  box-shadow: 0 1px 2px 0 rgba(154, 52, 18, 0.05);
  transition: all 0.2s ease;
}

.pie26-booth-badge:hover {
  background-color: #fdba74;
  box-shadow: 0 2px 4px 0 rgba(154, 52, 18, 0.1);
  transform: translateY(-1px);
}

/* Default sponsor badge */
.pie26-sponsor-badge {
  background-color: #e9d5ff;
  color: #7c3aed;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  border: 1px solid #c4b5fd;
  box-shadow: 0 1px 2px 0 rgba(124, 58, 237, 0.05);
  transition: all 0.2s ease;
}

.pie26-sponsor-badge:hover {
  background-color: #c4b5fd;
  box-shadow: 0 2px 4px 0 rgba(124, 58, 237, 0.1);
  transform: translateY(-1px);
}

/* Platinum sponsor badge */
.pie26-sponsor-platinum {
  background: linear-gradient(135deg, #e5e7eb 0%, #f9fafb 100%);
  color: #374151;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  border: 2px solid #d1d5db;
  box-shadow: 0 2px 6px 0 rgba(55, 65, 81, 0.1), inset 0 1px 0 0 rgba(255, 255, 255, 0.8);
  transition: all 0.2s ease;
  position: relative;
}

.pie26-sponsor-platinum:hover {
  background: linear-gradient(135deg, #f3f4f6 0%, #ffffff 100%);
  box-shadow: 0 4px 12px 0 rgba(55, 65, 81, 0.15), inset 0 1px 0 0 rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
}

/* Gold sponsor badge */
.pie26-sponsor-gold {
  background: linear-gradient(135deg, #fef3c7 0%, #fbbf24 100%);
  color: #92400e;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  border: 2px solid #f59e0b;
  box-shadow: 0 2px 6px 0 rgba(146, 64, 14, 0.1), inset 0 1px 0 0 rgba(255, 255, 255, 0.4);
  transition: all 0.2s ease;
}

.pie26-sponsor-gold:hover {
  background: linear-gradient(135deg, #fffbeb 0%, #f59e0b 100%);
  box-shadow: 0 4px 12px 0 rgba(146, 64, 14, 0.2), inset 0 1px 0 0 rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

/* Silver sponsor badge */
.pie26-sponsor-silver {
  background: linear-gradient(135deg, #f1f5f9 0%, #cbd5e1 100%);
  color: #475569;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  border: 2px solid #94a3b8;
  box-shadow: 0 2px 6px 0 rgba(71, 85, 105, 0.1), inset 0 1px 0 0 rgba(255, 255, 255, 0.6);
  transition: all 0.2s ease;
}

.pie26-sponsor-silver:hover {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  box-shadow: 0 4px 12px 0 rgba(71, 85, 105, 0.15), inset 0 1px 0 0 rgba(255, 255, 255, 0.7);
  transform: translateY(-1px);
}

/* Bronze sponsor badge */
.pie26-sponsor-bronze {
  background: linear-gradient(135deg, #fef2e7 0%, #d97706 100%);
  color: #92400e;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  border: 2px solid #c2410c;
  box-shadow: 0 2px 6px 0 rgba(146, 64, 14, 0.1), inset 0 1px 0 0 rgba(255, 255, 255, 0.3);
  transition: all 0.2s ease;
}

.pie26-sponsor-bronze:hover {
  background: linear-gradient(135deg, #fff7ed 0%, #ea580c 100%);
  box-shadow: 0 4px 12px 0 rgba(146, 64, 14, 0.2), inset 0 1px 0 0 rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

/* PIE26 info container */
.pie26-info-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Mobile responsive PIE badges */
@media (max-width: 768px) {
  .pie26-booth-badge,
  .pie26-sponsor-badge,
  .pie26-sponsor-platinum,
  .pie26-sponsor-gold,
  .pie26-sponsor-silver,
  .pie26-sponsor-bronze {
    font-size: 0.625rem;
    padding: 0.125rem 0.375rem;
  }
  
  .pie26-info-container {
    gap: 0.25rem;
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

/* Back button hover effect */
.back-button {
  transition: all 0.2s ease;
}

.back-button:hover {
  transform: translateX(-2px);
}

/* Contact link hover effects */
.contact-link {
  transition: color 0.2s ease;
  text-decoration: none;
}

.contact-link:hover {
  text-decoration: underline;
}

/* Line clamp utility for description truncation */
.line-clamp-1 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  line-clamp: 1;
  -webkit-line-clamp: 1;
}

.line-clamp-2 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  -webkit-line-clamp: 2;
}

/* List item focus states for accessibility */
.company-list-item:focus {
  outline: 2px solid #3b82f6;
  outline-offset: -2px;
  background-color: #f9fafb;
}

/* Loading skeleton for company list items */
.company-list-skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 0.5rem;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Company logo placeholder styles */
.logo-placeholder {
  background: white;
  color: #3A5EA6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

/* Enhanced hover effects for company items */
.company-item-container:hover {
  box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

/* Search highlight effect */
.search-highlight {
  background: linear-gradient(120deg, #a855f7 0%, #3b82f6 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
}

/* Global search container styling */
.global-search-container {
  position: relative;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 1rem;
  padding: 1rem;
  margin-bottom: 2rem;
}

.global-search-container::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  padding: 2px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: exclude;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
}

/* Search suggestion styles */
.search-suggestion {
  transition: all 0.2s ease;
  cursor: pointer;
}

.search-suggestion:hover {
  background-color: #f8fafc;
  transform: translateX(4px);
}

/* Responsive grid adjustments */
@media (max-width: 768px) {
  .company-list-item {
    padding: 1rem;
  }
  
  .company-list-item .flex {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .company-list-item .flex-shrink-0 {
    margin-bottom: 0.75rem;
  }
  
  .company-details-content {
    padding: 1rem !important;
  }
  
  #global-search-input {
    font-size: 1rem;
    padding: 0.75rem 1rem 0.75rem 3rem;
  }
  
  #search-categories-grid {
    grid-template-columns: 1fr;
  }
}

/* Image loading states */
.image-loading {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

/* Smooth transitions for view changes */
#loading, #categories-view, #companies-view {
  transition: opacity 0.3s ease-in-out;
}

/* Utility classes for show/hide */
.hidden {
  display: none !important;
}

.visible {
  display: block;
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Company details scrollbar styling */
.company-details-content::-webkit-scrollbar {
  width: 6px;
}

.company-details-content::-webkit-scrollbar-track {
  background: transparent;
}

.company-details-content::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 3px;
}

.company-details-content::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

/* Focus styles for accessibility */
button:focus,
input:focus,
a:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* Enhanced company list typography */
.company-list-item h3 {
  font-weight: 500;
  letter-spacing: -0.025em;
}

.company-list-item p {
  line-height: 1.4;
}

/* Animation for list items on load */
.company-item-container {
  animation: fadeInUp 0.3s ease-out;
  animation-fill-mode: both;
}

.company-item-container:nth-child(1) { animation-delay: 0.05s; }
.company-item-container:nth-child(2) { animation-delay: 0.1s; }
.company-item-container:nth-child(3) { animation-delay: 0.15s; }
.company-item-container:nth-child(4) { animation-delay: 0.2s; }
.company-item-container:nth-child(5) { animation-delay: 0.25s; }
.company-item-container:nth-child(n+6) { animation-delay: 0.3s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Slide-out details animation enhancement */
.company-details.opening {
  animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideDown {
  from {
    max-height: 0;
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Loading spinner in details */
.loading-spinner {
  opacity: 1;
  transition: opacity 0.3s ease;
}

.loading-spinner.fade-out {
  opacity: 0;
}

/* Image gallery hover effects */
.company-details img:hover {
  transform: scale(1.05);
  transition: transform 0.2s ease;
}

/* Company details content styling */
.company-details-content h3 {
  color: #1f2937;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.company-details-content h3:first-child {
  margin-top: 0;
}

/* Enhanced contact information styling */
.company-details-content .space-y-3 > div {
  padding: 0.75rem;
  background: white;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
  transition: all 0.2s ease;
}

.company-details-content .space-y-3 > div:hover {
  border-color: #3b82f6;
  box-shadow: 0 2px 4px -1px rgba(59, 130, 246, 0.1);
}

/* New contact information one-line layout */
.contact-info-line {
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 0.75rem;
  background: white;
  transition: all 0.2s ease;
}

.contact-info-line:hover {
  border-color: #3b82f6;
  box-shadow: 0 2px 4px -1px rgba(59, 130, 246, 0.1);
}

.contact-info-line .flex {
  gap: 1rem;
}

@media (max-width: 768px) {
  .contact-info-line .flex {
    flex-direction: column;
    gap: 0.75rem;
  }
}

/* Search results section styling */
.search-section {
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  background: white;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.search-section:empty {
  display: none;
}

/* Print styles */
@media print {
  .back-button,
  .search-input,
  #global-search-input,
  #clear-search,
  #back-to-categories {
    display: none !important;
  }
  
  .company-item-container {
    break-inside: avoid;
    margin-bottom: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1rem;
  }
  
  .company-item-container:hover {
    transform: none;
    background-color: transparent;
    border-left-color: transparent;
    box-shadow: none;
  }
  
  .company-details {
    max-height: none !important;
    overflow: visible !important;
  }
  
  .company-chevron {
    display: none;
  }
  
  #search-results-view {
    page-break-before: avoid;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .company-list-item {
    border: 2px solid #000;
  }
  
  .company-list-item:hover {
    border-left-color: #0066cc;
    border-left-width: 4px;
  }
  
  .company-details-content {
    border: 2px solid #000;
  }
  
  #global-search-input {
    border: 2px solid #000;
  }
  
  .category-card {
    border: 2px solid #000;
  }
}

/* Simplified Gallery Styles */
.image-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  max-height: 400px;
  overflow-y: auto;
  padding: 0.75rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
}

.gallery-item {
  flex: 0 0 auto;
  max-width: 200px;
  background: white;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

.gallery-item:hover {
  border-color: #3b82f6;
}

.gallery-image {
  width: 100%;
  max-height: 150px;
  object-fit: cover;
  object-position: center;
  display: block;
  cursor: pointer;
}

/* Responsive gallery adjustments */
@media (min-width: 640px) {
  .image-gallery {
    gap: 1rem;
    padding: 1rem;
  }
  
  .gallery-item {
    max-width: 220px;
  }
}

@media (min-width: 768px) {
  .image-gallery {
    max-height: 500px;
  }
  
  .gallery-item {
    max-width: 250px;
  }
}

/* Image Modal Styles */
.image-modal {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.close-modal-btn {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.close-modal-btn:hover {
  background-color: rgba(0, 0, 0, 0.8) !important;
}

/* Modal animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Company details bottom padding/margin */
.company-details-content {
  padding-bottom: 2rem !important;
  margin-bottom: 1rem;
}

/* Mobile gallery adjustments */
@media (max-width: 640px) {
  .image-gallery {
    gap: 0.5rem;
    padding: 0.5rem;
    max-height: 300px;
  }
  
  .gallery-item {
    max-width: 150px;
  }
  
  .gallery-image {
    max-height: 120px;
  }
  
  .image-modal .relative.bg-white {
    margin: 1rem;
  }
}

/* Gallery section spacing */
.company-details-content .mb-8:last-child {
  margin-bottom: 2rem !important;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .company-item-container,
  .company-list-item,
  .category-card,
  .back-button,
  .company-details,
  .company-chevron,
  .company-details-content,
  #global-search-input,
  #clear-search,
  #back-to-categories {
    transition: none;
    animation: none;
  }
  
  .pie26-badge {
    animation: none;
  }
  
  .company-item-container:hover {
    transform: none;
  }
  
  #global-search-input:focus {
    transform: none;
  }
}

/* Interactive states for better UX */
.company-list-item:active {
  transform: scale(0.98);
}

.category-card:active {
  transform: scale(0.98);
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Company details content fade-in */
.company-details-content > div {
  animation: fadeIn 0.3s ease-in 0.2s both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Enhanced focus management for expanded details */
.company-details:not([style*="max-height: 0"]):focus-within {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* Mobile-specific enhancements */
@media (max-width: 640px) {
  .company-list-item {
    padding: 1.25rem;
  }
  
  .company-details-content {
    padding: 1.25rem;
  }
  
  .company-item-container:hover {
    transform: none;
    box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.1);
  }
  
  #search-results-view h2 {
    font-size: 1.5rem;
  }
  
  #search-categories-section h3,
  #search-companies-section h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }
}

/* Loading state improvements */
.company-details .loading-spinner {
  background: linear-gradient(90deg, #f8f9fa 25%, #e9ecef 50%, #f8f9fa 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 0.5rem;
  padding: 2rem;
}

/* Social media links styling */
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid #e5e7eb;
}

.social-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.social-link svg {
  transition: all 0.3s ease;
}

.linkedin-link:hover {
  background-color: #0A66C2;
  border-color: #0A66C2;
}

.linkedin-link:hover svg {
  fill: white;
}

.facebook-link:hover {
  background-color: #1877F2;
  border-color: #1877F2;
}

.facebook-link:hover svg {
  fill: white;
}

.twitter-link:hover {
  background-color: #000000;
  border-color: #000000;
}

.twitter-link:hover svg {
  fill: white;
}

.instagram-link:hover {
  background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
  border-color: #833ab4;
}

.instagram-link:hover svg {
  fill: white;
}

.youtube-link:hover {
  background-color: #FF0000;
  border-color: #FF0000;
}

.youtube-link:hover svg {
  fill: white;
}

/* Contact buttons styling */
.contact-buttons-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  text-decoration: none;
  min-width: 120px;
  justify-content: center;
}

/* Contact button states */
.contact-btn-hidden {
  background-color: #3b82f6;
  color: white;
}

.contact-btn-hidden:hover:not(:disabled) {
  background-color: #2563eb;
  transform: translateY(-1px);
}

.contact-btn-revealed {
  background-color: #f3f4f6;
  color: #374151;
  border: 1px solid #d1d5db;
}

.contact-btn-revealed:hover {
  background-color: #10b981;
  color: white;
  transform: translateY(-1px);
}

.contact-btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

/* Notification system */
.notification {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1000;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transform: translateX(100%);
  max-width: 400px;
  min-width: 300px;
}

.notification.show {
  transform: translateX(0);
}

/* Contact stats display */
.contact-stats {
  background: linear-gradient(135deg, #dbeafe 0%, #e0f2fe 100%);
  border-radius: 0.75rem;
  padding: 1rem;
  border: 1px solid #bfdbfe;
  margin-bottom: 1rem;
}

.break-all {
  word-break: break-all;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .contact-buttons-row {
    gap: 0.25rem;
  }
  
  .contact-btn {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
    min-width: 100px;
  }
  
  .notification {
    right: 0.5rem;
    top: 0.5rem;
    max-width: calc(100% - 1rem);
    min-width: 280px;
  }
}

/* Social media section styling */
.social-media-section {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-left: 4px solid #3b82f6;
}

/* PIE26 logo styling */
.pie26-logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  background: white;
  border-radius: 0.5rem;
  padding: 0.75rem;
  box-shadow: 0 2px 8px -2px rgba(245, 158, 11, 0.15), 0 0 0 2px rgba(245, 158, 11, 0.1);
  border: 2px solid #f59e0b;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  max-width: 200px;
  margin: 0 auto;
}

.pie26-logo-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, rgba(251, 191, 36, 0.05) 100%);
  border-radius: 0.375rem;
  z-index: 0;
}

.pie26-logo-container::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -50%;
  width: 200%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.6), transparent);
  animation: pieShine 3s ease-in-out infinite;
  z-index: 1;
}

@keyframes pieShine {
  0% {
    left: -50%;
    opacity: 0;
  }
  50% {
    left: 50%;
    opacity: 1;
  }
  100% {
    left: 150%;
    opacity: 0;
  }
}

.pie26-logo-container:hover {
  box-shadow: 0 4px 12px -2px rgba(245, 158, 11, 0.25), 0 0 0 3px rgba(245, 158, 11, 0.15);
  transform: translateY(-1px);
  border-color: #d97706;
}

.pie26-logo {
  max-width: 100%;
  max-height: 60px;
  height: auto;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 0.25rem;
  z-index: 2;
  position: relative;
}

.pie26-logo.loaded {
  opacity: 1;
}

/* Mobile responsive PIE26 logo */
@media (max-width: 768px) {
  .pie26-logo-container {
    padding: 0.5rem;
    max-width: 160px;
  }
  
  .pie26-logo {
    max-height: 45px;
  }
}

@media (max-width: 480px) {
  .pie26-logo-container {
    padding: 0.5rem;
    max-width: 140px;
  }
  
  .pie26-logo {
    max-height: 35px;
  }
}

/* Horizontal logo styling */
.horizontal-logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

.horizontal-logo-container:hover {
  box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.horizontal-logo {
  max-width: 100%;
  max-height: 120px;
  height: auto;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 0.5rem;
}

.horizontal-logo.loaded {
  opacity: 1;
}

/* Mobile responsive horizontal logo */
@media (max-width: 768px) {
  .horizontal-logo-container {
    padding: 1rem;
  }
  
  .horizontal-logo {
    max-height: 80px;
  }
}

@media (max-width: 480px) {
  .horizontal-logo-container {
    padding: 0.75rem;
  }
  
  .horizontal-logo {
    max-height: 60px;
  }
}

/* Mobile responsive social links */
@media (max-width: 768px) {
  .social-link {
    width: 36px;
    height: 36px;
  }
  
  .social-link svg {
    width: 20px;
    height: 20px;
  }
}

/* Contact information icons styling */
.company-details-content svg {
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.company-details-content .space-y-3 > div:hover svg {
  color: #3b82f6;
}

/* Search input placeholder animation */
#global-search-input::placeholder {
  transition: color 0.3s ease;
}

#global-search-input:focus::placeholder {
  color: #9ca3af;
}

/* Search results count badge */
.results-count {
  display: inline-block;
  background-color: #dbeafe;
  color: #1e40af;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  margin-left: 0.5rem;
}

/* Empty search state enhancements */
.empty-search-suggestions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.search-suggestion-item {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  max-height: 150px;
}

.search-suggestion-item:hover {
  border-color: #3b82f6;
  box-shadow: 0 2px 4px -1px rgba(59, 130, 246, 0.1);
}

/* Advertisement Gallery Styles */
.advertisement-gallery {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

.advertisement-item {
  border-radius: 8px;
  overflow: hidden;
  background: white;
  border: 1px solid #e5e7eb;
}

.advertisement-image-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9fafb;
}

.advertisement-image {
  max-height: 240px;
  display: block;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.advertisement-image-container.ad-loaded .advertisement-image {
  opacity: 1;
}

.advertisement-image-container.ad-loaded .advertisement-loading {
  display: none;
}

.advertisement-image-container.ad-error .advertisement-image {
  display: none;
}

.advertisement-image-container.ad-error .advertisement-loading {
  display: none;
}

.advertisement-image-container.ad-error .advertisement-error {
  display: block !important;
}

.advertisement-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.advertisement-error {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  padding: 2rem;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .advertisement-image-container {
    min-height: 100px;
  }
}

/* Subsidiaries section styling */
.subsidiaries-section {
  background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
  transition: all 0.3s ease;
}

.subsidiaries-section:hover {
  box-shadow: 0 4px 12px -2px rgba(59, 130, 246, 0.1);
  transform: translateY(-1px);
}

.subsidiaries-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.subsidiaries-header svg {
  margin-right: 0.5rem;
  color: #3b82f6;
  flex-shrink: 0;
}

.subsidiaries-content {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 0.75rem;
  padding: 1.5rem;
  border-left: 4px solid #3b82f6;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.subsidiaries-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 50%, #3b82f6 100%);
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% {
    background-position: -200% 0;
  }
  50% {
    background-position: 200% 0;
  }
}

.subsidiaries-content:hover {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 4px 16px -4px rgba(59, 130, 246, 0.2);
}

.subsidiaries-text {
  color: #374151;
  line-height: 1.7;
  font-size: 0.95rem;
}

.subsidiaries-text span {
  display: block;
  margin-bottom: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(59, 130, 246, 0.1);
  transition: all 0.2s ease;
}

.subsidiaries-text span:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.subsidiaries-text span:hover {
  color: #1f2937;
  background-color: rgba(59, 130, 246, 0.05);
  border-radius: 0.375rem;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  margin-left: -0.25rem;
  margin-right: -0.25rem;
}

/* Mobile responsive subsidiaries */
@media (max-width: 768px) {
  .subsidiaries-content {
    padding: 1rem;
  }
  
  .subsidiaries-text {
    font-size: 0.9rem;
  }
  
  .subsidiaries-header {
    font-size: 1rem;
  }
}

/* Quill Rich Text Content Styling */
.quill-content {
  line-height: 1.6;
}

.quill-content p {
  margin-bottom: 0.75rem;
}

.quill-content p:last-child {
  margin-bottom: 0;
}

/* Handle empty paragraphs with just line breaks */
.quill-content p:empty, 
.quill-content p br:only-child {
  display: block;
  margin-bottom: 0.5rem;
}

/* Bullet Lists */
.quill-content ul {
  list-style-type: disc;
  margin-left: 1.5rem;
  margin-bottom: 0.75rem;
  padding-left: 0.5rem;
}

.quill-content ul li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.quill-content ul ul {
  list-style-type: circle;
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
}

.quill-content ul ul ul {
  list-style-type: square;
}

/* Numbered Lists */
.quill-content ol {
  list-style-type: decimal;
  margin-left: 1.5rem;
  margin-bottom: 0.75rem;
  padding-left: 0.5rem;
}

.quill-content ol li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.quill-content ol ol {
  list-style-type: lower-alpha;
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
}

.quill-content ol ol ol {
  list-style-type: lower-roman;
}

/* Text Formatting */
.quill-content strong {
  font-weight: 600;
  color: #1f2937;
}

.quill-content em {
  font-style: italic;
  color: #374151;
}

.quill-content u {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.quill-content s {
  text-decoration: line-through;
  opacity: 0.7;
}

/* Highlighted text */
.quill-content span[style*="background-color"] {
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
  font-weight: 500;
}

/* Links */
.quill-content a {
  color: #2563eb;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.quill-content a:hover {
  color: #1d4ed8;
  text-decoration-thickness: 2px;
}

/* Blockquotes */
.quill-content blockquote {
  border-left: 4px solid #e5e7eb;
  margin: 1rem 0;
  padding: 0.5rem 0 0.5rem 1rem;
  background-color: #f9fafb;
  border-radius: 0 0.375rem 0.375rem 0;
  font-style: italic;
  color: #4b5563;
}

/* Code formatting */
.quill-content code {
  background-color: #f3f4f6;
  color: #1f2937;
  font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
  font-size: 0.875rem;
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
  border: 1px solid #e5e7eb;
}

/* Headers within content */
.quill-content h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin: 1.25rem 0 0.75rem 0;
  line-height: 1.3;
}

.quill-content h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  margin: 1rem 0 0.5rem 0;
  line-height: 1.3;
}

.quill-content h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #374151;
  margin: 0.875rem 0 0.5rem 0;
  line-height: 1.3;
}

/* First header doesn't need top margin */
.quill-content h1:first-child,
.quill-content h2:first-child,
.quill-content h3:first-child {
  margin-top: 0;
}

/* Ensure proper spacing between elements */
.quill-content > *:not(:last-child) {
  margin-bottom: 0.75rem;
}

/* Mobile responsive quill content */
@media (max-width: 768px) {
  .quill-content {
    font-size: 0.9rem;
  }
  
  .quill-content ul,
  .quill-content ol {
    margin-left: 1rem;
    padding-left: 0.25rem;
  }
  
  .quill-content h1 {
    font-size: 1.25rem;
  }
  
  .quill-content h2 {
    font-size: 1.125rem;
  }
  
  .quill-content h3 {
    font-size: 1rem;
  }
}