/* ========================================
   HOME PAGE STYLES
   Styles for the home2.php page
   ======================================== */

/* ========================================
   PROFESSIONAL SEARCH FORM STYLES
   Clean, professional styling matching auth forms
   ======================================== */

.professional-search-form {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 32px;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.professional-search-form .search-fields-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.professional-search-form .dropdown-fields-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .professional-search-form .dropdown-fields-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}

.professional-search-form .form-group {
  display: flex;
  flex-direction: column;
}

.professional-search-form .form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 8px;
  line-height: 1.4;
}

.professional-search-form .form-input,
.professional-search-form .form-select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  color: #1a1a1a;
  background: #ffffff;
  transition: all 0.2s ease;
  appearance: none;
}

.professional-search-form .form-input:focus,
.professional-search-form .form-select:focus {
  outline: none;
  border-color: #1a1a1a;
  box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.1);
}

.professional-search-form .form-input::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

.professional-search-form .select-wrapper {
  position: relative;
}

.professional-search-form .select-chevron {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: #6b7280;
  pointer-events: none;
}

.professional-search-form .search-actions {
  text-align: center;
  margin-top: 24px;
}

.professional-search-form .search-button {
  width: 100%;
}

/* Select2 Custom Styling - Fixed dropdown behavior */
.professional-search-form .select2-container {
  width: 100% !important;
  display: block !important;
  position: relative !important;
  z-index: 1000 !important;
}

.professional-search-form .select2-container .select2-selection--single {
  display: block !important;
  cursor: pointer !important;
}

.professional-search-form .select2-container--default .select2-selection--single {
  height: 48px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background-color: #ffffff;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.professional-search-form .select2-container--default .select2-selection--single:hover {
  border-color: #9ca3af;
}

.professional-search-form .select2-container--default.select2-container--focus .select2-selection--single {
  outline: none;
  border-color: #1a1a1a;
  box-shadow: none;
}

.professional-search-form .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #1a1a1a;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  padding: 0;
  padding-right: 20px;
  display: flex;
  align-items: center;
  height: 100%;
}

.professional-search-form .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 48px;
  right: 12px;
  top: 0;
  width: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.professional-search-form .select2-container--default .select2-selection--single .select2-selection__arrow b {
  border-color: #6b7280 transparent transparent transparent;
  border-style: solid;
  border-width: 5px 4px 0 4px;
  height: 0;
  left: 50%;
  margin-left: -4px;
  margin-top: -2px;
  position: absolute;
  top: 50%;
  width: 0;
}

/* Select2 Dropdown Styling - Fixed positioning */
.professional-search-form .select2-dropdown {
  border: 1px solid #d1d5db !important;
  border-radius: 6px !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
  z-index: 9999 !important;
  position: absolute !important;
  background: white !important;
  min-width: 200px !important;
}

.professional-search-form .select2-results {
  max-height: 200px !important;
  overflow-y: auto !important;
}

.professional-search-form .select2-results__option {
  padding: 12px 16px !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  color: #1a1a1a !important;
  background-color: #ffffff !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
}

.professional-search-form .select2-results__option--highlighted {
  background-color: #1a1a1a !important;
  color: #ffffff !important;
}

.professional-search-form .select2-results__option[aria-selected=true] {
  background-color: #1a1a1a !important;
  color: #ffffff !important;
}

.professional-search-form .select2-results__option:hover {
  background-color: #1a1a1a !important;
  color: #ffffff !important;
}

/* Fix for dropdown not opening */
.professional-search-form .select2-container--open .select2-dropdown {
  display: block !important;
}

/* Ensure dropdown appears above other elements */
.professional-search-form .select2-dropdown--below {
  top: 100% !important;
  margin-top: -1px !important;
}

.professional-search-form .select2-dropdown--above {
  bottom: 100% !important;
  margin-bottom: -1px !important;
}

/* Font Definitions */
.font-sacramento {
  font-family: 'Sacramento', cursive !important;
}

.font-caveat {
  font-family: 'Caveat', cursive !important;
}

/* Dynamic Mobile Button Spacing */
.mobile-button-container {
  transition: margin-top 0.3s ease;
}

/* Responsive spacing based on viewport height */
@media (max-height: 600px) {
  .mobile-button-container {
    margin-top: 1rem !important;
  }
}

@media (min-height: 601px) and (max-height: 800px) {
  .mobile-button-container {
    margin-top: 2rem !important;
  }
}

@media (min-height: 801px) {
  .mobile-button-container {
    margin-top: 3rem !important;
  }
}

@media (max-width: 640px) {
  .mobile-text-sm {
    font-size: 0.875rem !important; /* text-sm equivalent */
  }
}

/* ========================================
   AFRICAN RESTAURANTS SECTION
   Afri-inspired layout with African restaurant cards
   ======================================== */

.trip-list {
  position: relative;
  overflow: hidden;
}

.trip-list .tagline-l {
  font-family: 'Sacramento', cursive !important;
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.trip-list .h3 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0;
}

/* Swiper Navigation Styles */
.trip-list .swiper-button-prev,
.trip-list .swiper-button-next {
  width: 44px;
  height: 44px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

.trip-list .swiper-button-prev {
  left: -22px;
}

.trip-list .swiper-button-next {
  right: -22px;
}

.trip-list .swiper-button-prev:hover,
.trip-list .swiper-button-next:hover {
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.trip-list .swiper-button-prev:after,
.trip-list .swiper-button-next:after {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
}

.trip-list .swiper-button-disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Swiper Scrollbar */
.trip-list .swiper-scrollbar {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  height: 4px;
  margin-top: 20px;
}

.trip-list .swiper-scrollbar-drag {
  background: #FF6600;
  border-radius: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .trip-list .tagline-l {
    font-size: 2rem;
  }
  
  .trip-list .h3 {
    font-size: 1.25rem;
  }
  
  .trip-list .swiper-button-prev,
  .trip-list .swiper-button-next {
    display: none;
  }
  
  .trip-list .swiper-slide {
    margin-right: 16px !important;
  }
}

@media (max-width: 640px) {
  .trip-list .tagline-l {
    font-size: 1.75rem;
  }
  
  .trip-list .h3 {
    font-size: 1.125rem;
  }
  
  .trip-list .container-wrapper {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Trip Card Styles */
.trip-card {
  background: #ffffff;
  border-radius: 12px;
  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 cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  color: inherit;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.trip-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  text-decoration: none;
  color: inherit;
}

.trip-card .thumbnail-gallery {
  position: relative;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
}

.trip-card .thumbnail-gallery img {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.trip-card:hover .thumbnail-gallery img {
  transform: scale(1.05);
}

/* Scale up animation for images */
.scale-up-animation {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Ensure no white space above hero section */
body {
  margin: 0 !important;
  padding: 0 !important;
}

html {
  margin: 0 !important;
  padding: 0 !important;
}

/* Remove any default margins from all elements that might cause white space */
* {
  margin-top: 0 !important;
}

/* Ensure the first element starts from the very top */
body > *:first-child {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Target specific elements that might cause white space */
section, div, header, main, article {
  margin-top: 0 !important;
}

/* Ensure no white space before hero section */
.hero-modern:before {
  content: '';
  display: block;
  height: 0;
  margin: 0;
  padding: 0;
}

/* Target any wrapper or container elements that might have margins */
.wrapper, .container, .main-content, .content, .page-wrapper {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Hero Section Override - Full viewport height with transparent header overlay */
.hero-modern {
  overflow: hidden;
  margin-top: 0 !important;
  padding-top: 0 !important;
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Force hero section to start from absolute top and extend behind header */
  top: -80px !important;
  margin-top: 0 !important;
  margin-bottom: -60px !important;
  padding-top: 80px !important;
  padding-bottom: 60px !important;
}

/* Override any conflicting styles from other CSS files */
body .hero-modern {
  margin-top: -80px !important;
  padding-top: 80px !important;
  position: relative !important;
  z-index: 1 !important;
  min-height: 100vh !important;
}

/* Header padding to prevent it from hitting the top of screen */
.afri-header {
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}

/* Africa Map as transparent background in hero section */
.africa-hero-bg {
  width: 100%;
  height: 100%;
  max-width: 600px;
  max-height: 600px;
  opacity: 0.3;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1)) 
          brightness(0) 
          invert(1) 
          sepia(1) 
          saturate(2) 
          hue-rotate(30deg);
  transition: all 0.3s ease;
  pointer-events: none;
}

.africa-hero-bg:hover {
  opacity: 0.5;
  transform: scale(1.02);
}


/* Search Section */
.search-section {
  padding: 4rem 0;
}

.search-form-modern {
  position: relative;
}

.search-form-modern .bg-gray-50 {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.search-form-modern input,
.search-form-modern select {
  transition: all 0.3s ease;
}

.search-form-modern input:focus,
.search-form-modern select:focus {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Main Search Bar Styling */
#main-search {
  outline: 0.5px solid #d1d5db;
  border: none;
  height: 56px; /* Match button height */
}

#main-search:focus {
  outline: 0.5px solid #cecece !important;
  box-shadow: none;
  transform: none;
}

input.select2-search__field:focus {
  outline: 0.5px solid #cecece !important;
  box-shadow: none;
  transform: none;
  outline-offset: none !important;
  background-color: #ffffff !important;
}

/* Ensure search button has consistent height and proper spacing */
#main-search + button {
  height: 56px;
  margin-top: 1.5rem !important; /* Force spacing on mobile */
}

@media (min-width: 768px) {
  #main-search + button {
    margin-top: 0 !important; /* Remove spacing on desktop */
  }
}

/* Featured Listings Section - Use Bootstrap spacing classes instead */
.featured-listings-section {
  background-color: rgb(255, 255, 255) !important;
}

/* Enhanced Featured Carousel */
.featured-carousel-wrapper {
  position: relative;
}

.featured-carousel-container {
  overflow: hidden;
  border-radius: 1rem;
  padding: 0.5rem 0 1rem 0;
}

.featured-carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.featured-carousel-slide {
  flex-shrink: 0;
  padding: 0 0.75rem;
}

/* Scrollbar Container */
.featured-carousel-scrollbar-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

/* Scrollbar */
.featured-carousel-scrollbar {
  flex: 1;
  height: 4px;
  background: #e5e7eb;
  border-radius: 2px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.featured-carousel-scrollbar:hover {
  background: #d1d5db;
}

.featured-carousel-scrollbar-drag {
  height: 100%;
  background: #1a1a1a;
  border-radius: 2px;
  transition: all 0.3s ease;
  cursor: grab;
  min-width: 20px;
}

.featured-carousel-scrollbar-drag:active {
  cursor: grabbing;
}

/* Navigation Buttons */
.featured-carousel-nav {
  display: flex;
  gap: 0.5rem;
}

.featured-carousel-prev,
.featured-carousel-next {
  background: white;
  border: 1px solid #1a1a1a;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.featured-carousel-prev:hover,
.featured-carousel-next:hover {
  transform: scale(1.1);
}

.featured-carousel-prev:disabled,
.featured-carousel-next:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.featured-carousel-prev.disabled,
.featured-carousel-next.disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

/* Legacy carousel styles for backward compatibility */
.carousel-container {
  overflow: hidden;
  border-radius: 1rem;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-slide {
  flex-shrink: 0;
  padding: 0 1rem;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: white;
  border: none;
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  cursor: pointer;
}

.carousel-nav:hover {
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.carousel-prev {
  left: -1rem;
}

.carousel-next {
  right: -1rem;
}

/* Categories Section */
.categories-section {
  background: white;
}

.category-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  transition: all 0.5s ease;
  cursor: pointer;
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.category-card a {
  display: block;
  position: relative;
  height: 20rem;
  overflow: hidden;
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-card:hover img {
  transform: scale(1.1);
}

.category-card .absolute {
  position: absolute;
}

.category-card .top-6 {
  top: 1.5rem;
}

.category-card .left-6 {
  left: 1.5rem;
}

.category-card .right-6 {
  right: 1.5rem;
}

.category-card .bottom-0 {
  bottom: 0;
}

/* CTA Section */
.cta-section {
  position: relative;
  overflow: hidden;
}

.feature-item {
  text-align: center;
  padding: 2rem;
  border-radius: 1rem;
  background: rgba(0, 0, 0, 1) !important;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
  .search-section .grid {
    grid-template-columns: 1fr;
  }
  
  .featured-carousel {
    padding: 0 1rem;
  }
  
  .carousel-nav {
    width: 2.5rem;
    height: 2.5rem;
  }
  
  .carousel-prev {
    left: -0.5rem;
  }
  
  .carousel-next {
    right: -0.5rem;
  }
  
  .category-card a {
    height: 16rem;
  }
  
}

@media (max-width: 640px) {
  .search-section {
    padding: 2rem 0;
  }
  
  .search-form-modern .bg-gray-50 {
    padding: 1.5rem;
  }
  
  /* Remove custom padding - use Bootstrap classes instead */
  .categories-section {
    padding: 3rem 0;
  }
  
  .cta-section {
    padding: 3rem 0;
  }
}

/* Hero Section */
.home-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg-white);
}

.home-hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.home-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.6) 50%,
    rgba(0, 0, 0, 0.4) 100%
  );
  z-index: 2;
}

.home-hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 800px;
  padding: 0 var(--space-6);
  color: var(--text-white);
}

.home-hero-subtitle {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: var(--space-4);
  opacity: 0.9;
}

.home-hero-title {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 var(--space-6) 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.home-hero-description {
  font-size: 1.125rem;
  line-height: 1.6;
  margin: 0 0 var(--space-8) 0;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.home-hero-search {
  max-width: 600px;
  margin: 0 auto var(--space-8);
}

.home-hero-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* Categories Section */
.home-categories {
  padding: var(--space-16) 0;
  background: var(--bg-white);
}

.home-categories-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.home-categories-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 var(--space-4) 0;
}

.home-categories-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.home-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-6);
}

.home-category-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
  transition: all 0.2s ease;
  cursor: pointer;
}

.home-category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.home-category-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-gray-100);
  border-radius: var(--radius-lg);
  color: var(--primary);
  font-size: 2rem;
}

.home-category-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 var(--space-2) 0;
}

.home-category-description {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0 0 var(--space-4) 0;
}

.home-category-count {
  font-size: 0.875rem;
  color: var(--primary);
  font-weight: 600;
}

/* Featured Listings Section */
.home-featured {
  padding: var(--space-16) 0;
  background: var(--bg-gray-50);
}

.home-featured-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.home-featured-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 var(--space-4) 0;
}

.home-featured-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.home-featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6);
}

.home-featured-actions {
  text-align: center;
  margin-top: var(--space-8);
}

/* Stats Section */
.home-stats {
  padding: var(--space-16) 0;
  background: var(--bg-white);
}

.home-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-8);
}

.home-stat {
  text-align: center;
}

.home-stat-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 var(--space-2) 0;
}

.home-stat-label {
  font-size: 1rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* Testimonials Section */
.home-testimonials {
  padding: var(--space-16) 0;
  background: var(--bg-gray-50);
}

.home-testimonials-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.home-testimonials-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 var(--space-4) 0;
}

.home-testimonials-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.home-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6);
}

.home-testimonial {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}

.home-testimonial-quote {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 var(--space-4) 0;
  font-style: italic;
}

.home-testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.home-testimonial-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  object-fit: cover;
}

.home-testimonial-info {
  flex: 1;
}

.home-testimonial-name {
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 var(--space-1) 0;
}

.home-testimonial-title {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

/* CTA Section */
.home-cta {
  padding: var(--space-16) 0;
  background: var(--bg-white);
  text-align: center;
}

.home-cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.home-cta-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 var(--space-4) 0;
}

.home-cta-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 var(--space-8) 0;
}

.home-cta-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* Newsletter Section */
.home-newsletter {
  padding: var(--space-16) 0;
  background: var(--bg-gray-50);
  text-align: center;
}

.home-newsletter-content {
  max-width: 600px;
  margin: 0 auto;
}

.home-newsletter-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 var(--space-4) 0;
}

.home-newsletter-description {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 var(--space-6) 0;
}

.home-newsletter-form {
  display: flex;
  gap: var(--space-3);
  max-width: 400px;
  margin: 0 auto;
}

.home-newsletter-form .form-input {
  flex: 1;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  background: var(--bg-white);
  color: var(--text-secondary);
}

.home-newsletter-form .form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1);
}

.home-newsletter-form .btn {
  padding: var(--space-3) var(--space-6);
  white-space: nowrap;
}

/* Responsive Homepage */
@media (max-width: 768px) {
  .home-hero-title {
    font-size: 2.5rem;
  }
  
  .home-hero-description {
    font-size: 1rem;
  }
  
  .home-categories-title,
  .home-featured-title,
  .home-testimonials-title,
  .home-cta-title {
    font-size: 2rem;
  }
  
  .home-categories-grid,
  .home-featured-grid,
  .home-testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .home-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .home-hero-actions,
  .home-cta-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .home-newsletter-form {
    flex-direction: column;
  }
  
  .home-newsletter-form .btn {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .home-hero-content {
    padding: 0 var(--space-4);
  }
  
  .home-hero-title {
    font-size: 2rem;
  }
  
  .home-categories-title,
  .home-featured-title,
  .home-testimonials-title,
  .home-cta-title {
    font-size: 1.75rem;
  }
  
  .home-stats-grid {
    grid-template-columns: 1fr;
  }
  
  .home-stat-number {
    font-size: 2.5rem;
  }
}


/* ========================================
   HOW IT WORKS SECTION
   Afri-inspired design with steps
   ======================================== */

.how-it-works-section {
  background-color: transparent !important;
  border-bottom-style: none !important;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}


/* Background Pattern */
.how-it-works-section::before {
  content: '';
  position: absolute;
  top: -10%;
  left: -10%;
  right: -10%;
  bottom: -10%;
  background-image: url('../../frontend/images/africa.svg');
  background-size: auto 100%;
  background-position: right;
  background-repeat: no-repeat;
  background-attachment: scroll;
  background-color: hsla(0, 0%, 10%, 0.9);
  background-blend-mode: difference;
  z-index: 1;
}

@media (max-width: 768px) {
  .how-it-works-section::before {
    background-size: 500px auto;
    background-position: top;
  }
}

.how-it-works-section > * {
  position: relative;
  z-index: 2;
}

/* Step Cards */
.how-it-works-step {
  background: #ffffff !important;
  /* backdrop-filter: blur(10px); */
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

/* Step Icon Container */
.step-icon-container {
  position: relative;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.step-icon {
  width: 50px;
  height: 50px;
  background: #1a1a1a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin: 0 auto;
  transition: all 0.3s ease;
}

.how-it-works-step:hover .step-icon {
  transform: scale(1.1);
  background: #FF6600;
}

.step-number {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 32px;
  height: 32px;
  background: #FF6600;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.125rem;
  border: 3px solid white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Step Content */
.step-content {
  text-align: center;
}

.step-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: #1a1a1a99;
  margin: 0 0 1rem 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.step-description {
  font-size: 1rem;
  color: #1a1a1a;
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin: 0;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive Design */
@media (min-width: 768px) {
  .how-it-works-section {
    margin-right: 120px !important;
    margin-left: 120px !important;
  }
  
  .how-it-works-step {
    padding: 2.5rem;
  }
  
  .step-icon {
    width: 86px;
    height: 86px;
  }
  
  .step-number {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }
  
  .step-title {
    font-size: 2.5rem;
    line-height: 1.1;
    letter-spacing: -0.025em;
  }
  
  .step-description {
    font-size: 1.125rem;
    line-height: 1.3;
    letter-spacing: -0.015em;
  }
}

@media (max-width: 768px) {
  
  .how-it-works-step {
    padding: 1.5rem;
  }
  
  .step-icon {
    width: 64px;
    height: 64px;
  }
  
  .step-number {
    width: 28px;
    height: 28px;
    font-size: 1rem;
  }
  
  .step-title {
    font-size: 2rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
  }
  
  .step-description {
    font-size: 0.9rem;
    line-height: 1.35;
    letter-spacing: -0.01em;
  }
}

@media (max-width: 640px) {
  .how-it-works-step {
    padding: 1.25rem;
  }
  
  .step-icon {
    width: 56px;
    height: 56px;
  }
  
  .step-number {
    width: 24px;
    height: 24px;
    font-size: 0.875rem;
  }
}


.select2-search__field:focus{
  border: 1px solid #1a1a1a !important;
}