body { 
  background: #f8f9fa; 
  margin: 0; 
  font-family: 'Segoe UI', Arial, sans-serif; 
  line-height: 1.6;
}

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

/* Hide mobile elements on desktop */
.mobile-quick-actions {
  display: none;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 100px 20px 80px;
  text-align: center;
  background: url('/assets/cb_main_big-compress.jpg') no-repeat bottom right fixed;
  background-size: cover;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3.5em;
  margin-bottom: 16px;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  font-weight: 700;
}

.hero-subtitle {
  font-size: 1.4em;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
}

.stat-item {
  text-align: center;
  color: white;
}

.stat-number {
  display: block;
  font-size: 2.5em;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.stat-label {
  font-size: 1.1em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.search-form {
  background: rgba(255,255,255,0.95);
  max-width: 600px;
  margin: 32px auto 0 auto;
  padding: 32px 24px 24px 24px;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10), 0 1.5px 6px rgba(0,0,0,0.06);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.search-form .main-search-input {
  flex: 2 1 300px;
  min-width: 200px;
  padding: 14px 20px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1.1em;
  background: white;
  transition: all 0.2s;
  font-weight: 500;
}

.search-form .main-search-input:focus {
  border: 2px solid #6366f1;
  outline: none;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.search-form .main-search-input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.search-form select,
.search-form input[type="text"]:not(.main-search-input),
.search-form input[type="number"] {
  flex: 1 1 180px;
  min-width: 120px;
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1em;
  background: #f7f7fa;
  transition: border 0.2s;
}

.search-form select:focus,
.search-form input:focus:not(.main-search-input) {
  border: 1.5px solid #0077ff;
  outline: none;
  background: #fff;
}

.search-form .btn {
  flex: 1 1 100%;
  padding: 14px 0;
  background: linear-gradient(90deg, #0077ff 60%, #00c6ff 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,119,255,0.08);
  margin-top: 8px;
  transition: background 0.2s, box-shadow 0.2s;
}

.search-form .btn:hover {
  background: linear-gradient(90deg, #005fcc 60%, #0099cc 100%);
  box-shadow: 0 4px 16px rgba(0,119,255,0.13);
}

/* Common Section Styles */
section {
  padding: 80px 0;
}

section h2 {
  text-align: center;
  font-size: 2.5em;
  color: #1e293b;
  margin-bottom: 16px;
  font-weight: 700;
}

.section-subtitle {
  text-align: center;
  font-size: 1.2em;
  color: #64748b;
  margin-bottom: 60px;
}

.section-cta {
  text-align: center;
  margin-top: 40px;
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 12px 32px;
  font-size: 1.1em;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(90deg, #0077ff 60%, #00c6ff 100%);
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(90deg, #005fcc 60%, #0099cc 100%);
  transform: translateY(-2px);
}

.btn-secondary {
  background: white;
  color: #0077ff;
  border: 2px solid #0077ff;
}

.btn-secondary:hover {
  background: #0077ff;
  color: white;
}

/* Recent Ads Section */
.recent-ads {
  background: #f9f9f9;
}

.ads-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.ad-item {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: left;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  cursor: pointer;
  border: 1px solid #e2e8f0;
}

.ad-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.ad-link-card {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 10;
  text-indent: -9999px;
  background: transparent;
  border: none;
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.ad-link-overlay {
  display: none;
}

.ad-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: #f8f9fa;
}

.ad-content {
  padding: 20px;
}

.ad-item h3 {
  font-size: 1.2em;
  color: #1e293b;
  margin: 0 0 8px 0;
  font-weight: 600;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.ad-price {
  font-size: 1.4em;
  color: #059669;
  margin: 0 0 8px 0;
  font-weight: 700;
}

.ad-year {
  font-size: 0.95em;
  color: #64748b;
  margin: 0;
}

/* Features Section */
.features {
  background: white;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.feature-item {
  text-align: center;
  padding: 30px 20px;
  border-radius: 12px;
  background: #f8fafc;
  transition: transform 0.2s;
}

.feature-item:hover {
  transform: translateY(-4px);
}

.feature-icon {
  font-size: 2em;
  margin-bottom: 20px;
}

.feature-item h3 {
  font-size: 1.4em;
  color: #1e293b;
  margin-bottom: 16px;
  font-weight: 600;
}

.feature-item p {
  color: #64748b;
  line-height: 1.6;
}

/* Popular Makes Section */
.popular-makes {
  background: #f8fafc;
}

.makes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

.make-item {
  background: white;
  padding: 30px 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s;
}

.make-item:hover {
  transform: translateY(-4px);
}

.make-logo {
  height: 60px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.make-logo img {
  max-height: 100%;
  max-width: 80px;
  object-fit: contain;
  filter: brightness(0.8);
  transition: filter 0.2s;
}

.make-item:hover .make-logo img {
  filter: brightness(1);
}

.make-item h3 {
  font-size: 1.3em;
  color: #1e293b;
  margin-bottom: 8px;
  font-weight: 600;
}

.make-item p {
  color: #64748b;
  margin-bottom: 20px;
}

.make-link {
  color: #0077ff;
  text-decoration: none;
  font-weight: 600;
}

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

/* How It Works Section */
.how-it-works {
  background: white;
}

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

.process-item {
  text-align: center;
  padding: 30px 20px;
}

.process-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #0077ff, #00c6ff);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  font-weight: 700;
  margin: 0 auto 20px;
}

.process-item h3 {
  font-size: 1.4em;
  color: #1e293b;
  margin-bottom: 16px;
  font-weight: 600;
}

.process-item p {
  color: #64748b;
  line-height: 1.6;
}

/* Getting Started Section */
.getting-started {
  background: #f8fafc;
}

.getting-started-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.getting-started-item {
  background: white;
  padding: 40px 30px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.2s;
}

.getting-started-item:hover {
  transform: translateY(-4px);
}

.getting-started-icon {
  font-size: 3em;
  margin-bottom: 20px;
}

.getting-started-item h3 {
  font-size: 1.4em;
  color: #1e293b;
  margin-bottom: 16px;
  font-weight: 600;
}

.getting-started-item p {
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 24px;
}

.getting-started-link {
  display: inline-block;
  padding: 12px 24px;
  background: linear-gradient(90deg, #0077ff 60%, #00c6ff 100%);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.2s;
}

.getting-started-link:hover {
  background: linear-gradient(90deg, #005fcc 60%, #0099cc 100%);
  transform: translateY(-2px);
}

/* Testimonials Section */
.testimonials {
  background: #f8fafc;
}

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

.testimonial-item {
  background: white;
  padding: 40px 30px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.testimonial-content p {
  font-size: 1.1em;
  color: #1e293b;
  line-height: 1.6;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author strong {
  color: #1e293b;
  font-weight: 600;
}

.testimonial-author span {
  color: #64748b;
  margin-left: 8px;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, #0077ff, #00c6ff);
  color: white;
  text-align: center;
}

.cta-section h2 {
  color: white;
  margin-bottom: 20px;
}

.cta-section p {
  font-size: 1.2em;
  margin-bottom: 40px;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-buttons .btn {
  min-width: 160px;
}

/* Trust & Safety Section */
.trust-safety {
  background: white;
}

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

.trust-item {
  text-align: center;
  padding: 30px 20px;
}

.trust-icon {
  font-size: 3em;
  margin-bottom: 20px;
}

.trust-item h3 {
  font-size: 1.4em;
  color: #1e293b;
  margin-bottom: 16px;
  font-weight: 600;
}

.trust-item p {
  color: #64748b;
  line-height: 1.6;
}

/* Professional Icon Styles */
.feature-icon, .getting-started-icon, .trust-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  transition: all 0.2s;
}

.feature-icon img, .getting-started-icon img, .trust-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: opacity(0.8);
}

.feature-item:hover .feature-icon,
.step-item:hover .getting-started-icon,
.trust-item:hover .trust-icon {
  background: #6366f1;
  border-color: #6366f1;
}

.feature-item:hover .feature-icon img,
.step-item:hover .getting-started-icon img,
.trust-item:hover .trust-icon img {
  filter: brightness(0) invert(1);
}

@media (max-width: 768px) {
  .hero {
    padding: 60px 20px 40px;
    min-height: 500px;
  }
  
  .hero h1 {
    font-size: 2.5em;
  }
  
  .hero-subtitle {
    font-size: 1.1em;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 20px;
  }
  
  .stat-number {
    font-size: 2em;
  }
  
  /* Hide Popular Makes section on mobile to save space */
  .popular-makes {
    display: none;
  }
  
  /* Make Features section more compact */
  .features {
    padding: 30px 0;
  }
  
  .features .feature-item:nth-child(n+4) {
    display: none; /* Only show first 3 features on mobile */
  }
  
  /* Make Getting Started more compact */
  .getting-started {
    padding: 30px 0;
  }
  
  .getting-started .step-item:nth-child(n+3) {
    display: none; /* Only show first 2 steps on mobile */
  }
  
  /* Hide Trust & Safety section on mobile */
  .trust-safety {
    display: none;
  }
  
  section {
    padding: 40px 0;
  }
  
  section h2 {
    font-size: 2em;
  }
  
  .section-subtitle {
    font-size: 1.1em;
    margin-bottom: 30px;
  }
  
  .ads-container {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
  }
  
  .features-grid,
  .makes-grid,
  .process-grid,
  .testimonials-grid,
  .trust-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  /* Make Recent Ads more prominent on mobile */
  .recent-ads {
    padding: 20px 0;
    order: -1; /* Move Recent Ads above Features on mobile */
  }
  
  .recent-ads h2 {
    font-size: 1.8em;
    margin-bottom: 10px;
  }
  
  .recent-ads .section-subtitle {
    margin-bottom: 20px;
  }
  
  /* Mobile Quick Actions */
  .mobile-quick-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    justify-content: center;
  }
  
  .quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 20px;
    background: #6366f1;
    color: white;
    text-decoration: none;
    border-radius: 12px;
    flex: 1;
    max-width: 140px;
    font-weight: 600;
    transition: all 0.2s;
  }
  
  .quick-action-btn:hover {
    background: #5856eb;
    transform: translateY(-2px);
  }
  
  .quick-action-btn span:first-child {
    font-size: 1.5em;
    margin-bottom: 4px;
  }
  
  .quick-action-btn span:last-child {
    font-size: 0.9em;
  }
  
  .search-form {
    padding: 20px 16px;
    gap: 12px;
  }
  
  .search-form select,
  .search-form input[type="text"],
  .search-form input[type="number"] {
    min-width: 100px;
    flex: 1 1 140px;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 40px 15px 30px;
    min-height: 400px;
  }
  
  .hero h1 {
    font-size: 2em;
  }
  
  .hero-subtitle {
    font-size: 1em;
  }
  
  .container {
    padding: 0 15px;
  }
  
  section {
    padding: 40px 0;
  }
  
  section h2 {
    font-size: 1.8em;
  }
  
  .ads-container {
    grid-template-columns: 1fr;
  }
  
  .search-form {
    padding: 16px 12px;
  }
  
  .search-form select,
  .search-form input[type="text"],
  .search-form input[type="number"] {
    flex: 1 1 100%;
  }
}
