/* =========================================================
   1. BASE GLASS UTILS (Theme Preserved)
========================================================= */

:root {
  --glass-bg: rgba(255, 255, 255, 0.18);
  --glass-border: rgba(255, 255, 255, 0.35);
}

[data-theme="dark"] {
  --glass-bg: rgba(20, 20, 20, 0.35);
  --glass-border: rgba(255, 255, 255, 0.18);
}

.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* =========================================================
   2. SEARCH + CATEGORY BAR
========================================================= */

.search-input {
  width: 90%;
  max-width: 600px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  color: inherit;
  font-size: 0.9rem;
  margin: 0 auto;
  display: block;
  text-align: center;
}

.category-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  width: 90%;
  margin: 0 auto 20px;
}

.category-btn {
  padding: 10px 18px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.25s ease;
}

.category-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.45);
}

.category-btn.active {
  background: #ff0000;
  color: white;
  border-color: #ff0000;
}

/* =========================================================
   3. HOW IT WORKS (STEPS)
========================================================= */

.steps-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

.step-card {
  flex: 1 1 250px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease, background 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.1);
}

.step-icon {
  font-size: 2rem;
  color: #ff0000;
  margin-bottom: 15px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 0, 0, 0.1);
  border-radius: 50%;
}

.step-card h4 {
  margin: 10px 0;
  font-size: 1.1rem;
  color: inherit;
  font-weight: 600;
}

.step-card p {
  font-size: 0.9rem;
  opacity: 0.85;
  line-height: 1.5;
  margin: 0;
}

/* =========================================================
   4. GUARANTEE / ESCROW SECTION
========================================================= */

.guarantee-section {
  margin: 20px auto;
  max-width: 1200px;
  padding: 20px;
  border-left: 5px solid var(--accent-color);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(39, 174, 96, 0.05));
}

.guarantee-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  text-align: center;
}

.guarantee-icon {
  font-size: 3rem;
  color: var(--accent-color);
  background: rgba(39, 174, 96, 0.1);
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.guarantee-text h3 {
  margin-bottom: 10px;
  color: var(--primary-color);
}

[data-theme="dark"] .guarantee-text h3 {
  color: #fff;
}

.guarantee-list {
  list-style: none;
  padding: 0;
  margin-top: 15px;
  text-align: left;
  display: inline-block;
}

.guarantee-list li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
  line-height: 1.5;
}

.guarantee-list li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--accent-color);
  position: absolute;
  left: 0;
  top: 2px;
}

.guarantee-text a {
  color: #25D366;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* =========================================================
   5. RESULTS AREA & SPOTLIGHT EMPTY STATE (FIXED SCROLL & WIDTH)
========================================================= */

.provider-results-wrapper {
  max-width: 1400px; /* Increased width to fit more cards */
  margin: 20px auto;
  padding: 10px;
}

.results-header {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
}

.results-header h3 {
  font-size: 1.5rem;
  margin-bottom: 5px;
}

.results-sub {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.results-container {
  min-height: 350px;
  display: flex;
  flex-wrap: nowrap; /* Forces ONE LINE */
  overflow-x: auto;  /* Enables Horizontal Scrolling */
  overflow-y: hidden;
  justify-content: flex-start; /* Align left */
  padding-bottom: 20px;
  scroll-behavior: smooth;
  
  width: 100%; /* Changed from 90% to maximize space */
  max-width: 1400px;
  margin: 0 auto 40px;
  gap: 20px;
}

/* Styled Horizontal Scrollbar (Now Visible) */
.results-container::-webkit-scrollbar {
  height: 8px; 
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}
.results-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}
.results-container:hover::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.4);
}

/* --- SPOTLIGHT CARD STYLES (Used when Empty) --- */
.empty-spotlight-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 0;
}

.spotlight-card {
  width: 100%;
  max-width: 500px;
  padding: 40px 30px;
  border-radius: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: float-card 6s ease-in-out infinite;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
}

.spotlight-visual {
  position: relative;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.glow-effect {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(39, 174, 96, 0.4) 0%, rgba(39, 174, 96, 0) 70%);
  border-radius: 50%;
  animation: pulse-glow 3s infinite ease-in-out;
  z-index: 1;
}

.icon-circle {
  position: relative;
  z-index: 2;
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary-color);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  animation: icon-bounce 2s infinite ease-in-out;
}

[data-theme="dark"] .icon-circle {
  background: #2c3e50;
  color: #fff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.spotlight-text h3 {
  font-size: 1.4rem;
  margin: 0 0 10px 0;
  color: var(--primary-color);
}

[data-theme="dark"] .spotlight-text h3 {
  color: #ffffff;
}

.spotlight-text p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

@keyframes float-card {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse-glow {
  0%, 100% { transform: scale(0.8); opacity: 0.5; }
  50% { transform: scale(1.2); opacity: 0.8; }
}

@keyframes icon-bounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Mobile Adjustments for Spotlight */
@media (max-width: 768px) {
  .spotlight-card {
    padding: 30px 20px;
    width: 95%;
  }
  .spotlight-visual {
    width: 80px;
    height: 80px;
  }
  .icon-circle {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
}

/* =========================================================
   6. PROVIDER CARDS (FIXED WIDTH FOR SCROLL)
========================================================= */

.providers-grid {
  display: none; /* Hidden since we use flex container for scroll */
}

.provider-card {
  position: relative;
  padding: 20px;
  border-radius: 12px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 160px;
  
  /* CRITICAL FOR ONE LINE SCROLL */
  min-width: 320px;
  max-width: 320px;
  flex-shrink: 0; /* Prevents shrinking */
  
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  animation: cardEntrance 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), 
              box-shadow 0.3s ease, 
              border-color 0.3s ease;
  overflow: hidden;
}

/* Shimmer Effect */
.provider-card::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.2), transparent);
  transform: skewX(-25deg);
  transition: 0.5s;
  pointer-events: none;
}

.provider-card:hover::before {
  animation: shimmerMove 0.8s;
}

.provider-card strong {
  font-size: 0.95rem;
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
  color: inherit;
  z-index: 2;
}

.provider-city {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.75;
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  z-index: 2;
}

.provider-desc {
  font-size: 0.8rem;
  opacity: 0.85;
  margin-bottom: 16px;
  line-height: 1.4;
  flex-grow: 1;
  z-index: 2;
}

.btn.small {
  font-size: 0.75rem !important;
  padding: 8px 14px !important;
  border-radius: 8px !important;
  margin-top: auto;
  text-align: center;
  transition: all 0.2s ease !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  z-index: 2;
}

/* =========================================================
   7. WHATSAPP BUTTON (GREEN + LOGO + PULSE)
========================================================= */

.provider-card .btn.whatsapp,
.provider-card a[href*="wa.me"],
.provider-card a[href*="whatsapp"] {
  background: #25D366 !important;
  border-color: #25D366 !important;
  color: white !important;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
  overflow: visible;
}

.provider-card .btn.whatsapp::before,
.provider-card a[href*="wa.me"]::before,
.provider-card a[href*="whatsapp"]::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='white' d='M380.9 97.1C339 55.1 283.2 32 223.9 32c-122.4 0-222 99.6-222 222 0 39.1 10.2 77.3 29.6 111L0 480l117.7-30.9c32.4 17.7 68.9 27,106.1 27h.1c122.3 0 224.1-99.6 224.1-222 0-59.3-25.2-115-67.1-157zm-157 341.6c-33.2 0-65.7-8.9-94-25.7l-6.7-4-69.8 18.3L72 359.2l-4.4-7c-18.5-29.4-28.2-63.3-28.2-98.2 0-101.7 82.8-184.5 184.6-184.5 49.3 0 95.6 19.2 130.4 54.1 34.8 34.9 56.2 81.2 56.1 130.5 0 101.8-84.9 184.6-186.6 184.6zm101.2-138.2c-5.5-2.8-32.8-16.2-37.9-18-5.1-1.9-8.8-2.8-12.5 2.8-3.7 5.6-14.3 18-17.6 21.8-3.2 3.7-6.5 4.2-12 1.4-32.6-16.3-54-29.1-75.5-66-5.7-9.8 5.7-9.1 16.3-30.3 1.8-3.7.9-6.9-.5-9.7-1.4-2.8-12.5-30.1-17.1-41.2-4.5-10.8-9.1-9.3-12.5-9.5-3.2-.2-6.9-.2-10.6-.2-3.7 0-9.7 1.4-14.8 6.9-5.1 5.6-19.4 19-19.4 46.3 0 27.3 19.9 53.7 22.6 57.4 2.8 3.7 39.1 59.7 94.8 83.8 35.2 15.2 49 16.5 66.6 13.9 10.7-1.6 32.8-13.4 37.4-26.4 4.6-13 4.6-24.1 3.2-26.4-1.3-2.5-5-3.9-10.5-6.6z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.provider-card .btn.whatsapp::after,
.provider-card a[href*="wa.me"]::after,
.provider-card a[href*="whatsapp"]::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  border: 2px solid #25D366;
  animation: wa-pulse 2s infinite;
  z-index: -1;
}

.provider-card .btn.whatsapp:hover,
.provider-card a[href*="wa.me"]:hover,
.provider-card a[href*="whatsapp"]:hover {
  background: #128C7E !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 15px rgba(37, 211, 102, 0.5) !important;
}

.btn.small:not(.whatsapp):not(a[href*="wa.me"]):not(a[href*="whatsapp"]):hover {
  background: rgba(255,255,255,0.4);
  transform: translateY(-2px);
}

/* =========================================================
   8. CARD STATES (ACTIVE & HOVER)
========================================================= */

.provider-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
  border-color: rgba(255,255,255,0.8);
}

.provider-card.active {
  border: 2px solid #ff0000;
  background: rgba(255, 0, 0, 0.08);
  box-shadow: 0 0 0 2px rgba(255,0,0,0.2), 0 10px 25px rgba(0,0,0,0.15);
  transform: scale(1.02);
  z-index: 10;
}

.provider-card.active::after {
  content: '';
  position: absolute;
  top: 12px; right: 12px;
  width: 8px; height: 8px;
  background: #ff0000;
  border-radius: 50%;
  box-shadow: 0 0 10px #ff0000;
  animation: activePulse 1.5s infinite;
}

@keyframes cardEntrance {
  from { opacity: 0; transform: translateY(30px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes shimmerMove {
  0% { left: -100%; }
  100% { left: 200%; }
}

@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}

@keyframes activePulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.5; }
  100% { transform: scale(1); opacity: 1; }
}

.provider-card:nth-child(1) { animation-delay: 0.05s; }
.provider-card:nth-child(2) { animation-delay: 0.1s; }
.provider-card:nth-child(3) { animation-delay: 0.15s; }
.provider-card:nth-child(4) { animation-delay: 0.2s; }
.provider-card:nth-child(5) { animation-delay: 0.25s; }
.provider-card:nth-child(6) { animation-delay: 0.3s; }
.provider-card:nth-child(n+7) { animation-delay: 0.35s; }

.empty-tip {
  grid-column: 1 / -1;
  font-size: 0.8rem;
  opacity: 0.8;
  text-align: center;
  padding: 20px;
  border: 1px dashed var(--glass-border);
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
}

/* =========================================================
   9. TESTIMONIALS SECTION
========================================================= */

.testimonial-section {
  margin: 40px auto;
  max-width: 1200px;
  padding: 40px 20px;
  text-align: center;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 20px;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.1);
}

.client-photo {
  margin-bottom: 20px;
}

.client-photo img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-color);
  padding: 3px;
  background: rgba(255, 255, 255, 0.1);
}

.quote {
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 20px;
  position: relative;
}

.quote::before {
  content: "\f10d";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 1.5rem;
  opacity: 0.2;
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
}

.client-info {
  text-align: center;
}

.client-info h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: var(--primary-color);
}

[data-theme="dark"] .client-info h4 {
  color: #ffffff;
}

.client-info span {
  display: block;
  font-size: 0.85rem;
  color: var(--accent-color);
  margin-bottom: 10px;
  font-weight: 600;
}

.stars {
  color: #f1c40f;
  font-size: 0.9rem;
}

/* =========================================================
   10. RICH CONTENT / ADSENSE SECTION
========================================================= */

.rich-content-section {
  margin: 60px auto;
  max-width: 900px;
  padding: 40px;
  text-align: left;
  line-height: 1.8;
}

.rich-text-block h3 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.8rem;
}

.rich-text-block h4 {
  margin-top: 30px;
  margin-bottom: 10px;
  font-size: 1.3rem;
  color: var(--accent-color);
}

[data-theme="dark"] .rich-text-block h4 {
  color: #2ecc71;
}

.rich-text-block p {
  margin-bottom: 15px;
  color: var(--text-muted);
  font-size: 1rem;
}

/* =========================================================
   11. FAQ SECTION
========================================================= */

.faq-section {
  max-width: 800px;
  margin: 0 auto;
}

.faq-section h3 {
  text-align: center;
  margin-bottom: 20px;
  font-weight: 600;
}

.faq-item {
  margin-bottom: 12px;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
  transition: background 0.3s ease;
}

.faq-item:hover {
  background: rgba(255,255,255,0.06);
}

.faq-item summary {
  padding: 15px;
  cursor: pointer;
  font-weight: 500;
  position: relative;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.2rem;
  font-weight: bold;
  transition: transform 0.3s ease;
  color: #ff0000;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding: 0 15px 15px 15px;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: inherit;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 15px;
}

/* =========================================================
   12. FLOATING NOTIFICATION BELL
========================================================= */

.notify-bell {
  position: fixed;
  bottom: 22px;
  right: 22px;
  background: #ff0000;
  color: white;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0,0,0,0.25);
  z-index: 9999;
  opacity: 1;
  transition: transform 0.22s ease;
}

.notify-bell:hover {
  transform: translateY(-4px);
}

.bell-badge {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #ffffff;
  border-radius: 50%;
  top: 6px;
  right: 6px;
}

.hidden { display: none !important; }

.notify-popup {
  position: fixed;
  bottom: 80px;
  right: 22px;
  width: 260px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  z-index: 9999;
  animation: fadeIn 0.25s ease;
}

.notify-popup h3 { margin: 0 0 6px; font-size: 1rem; font-weight: 600; }
.notify-popup ul { margin: 6px 0 10px 18px; padding-left: 2px; line-height: 1.25rem; font-size: 0.85rem; }
.popup-close-btn { margin-top: 6px; background: #ff0000; color: white; padding: 6px 10px; border-radius: 8px; font-size: 0.8rem; text-align: center; cursor: pointer; user-select: none; transition: 0.2s ease; }
.popup-close-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.2); }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0px); } }

/* =========================================================
   13. SIDEBAR PANEL (MOVED TO LEFT SIDE)
========================================================= */

.sidebar-panel {
  position: fixed;
  top: 72px;
  left: -100%; /* CHANGED: Hides on the Left */
  width: 340px;
  height: calc(100% - 84px);
  padding: 16px;
  overflow-y: auto;
  border-right: 1px solid var(--glass-border); /* CHANGED: Border on right */
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  transition: left 0.3s ease; /* CHANGED: Transition left */
  z-index: 9998;
  box-shadow: 4px 0 25px rgba(0,0,0,0.2); /* Shadow on right */
}

.sidebar-panel.open { 
  left: 0; /* CHANGED: Opens from Left */
}

.sidebar-panel h3 { margin-bottom: 8px; font-size: 1rem; font-weight: 600; }
.sidebar-item { background: var(--glass-bg); border: 1px solid var(--glass-border); padding: 10px 12px; border-radius: 10px; font-size: 0.8rem; margin-bottom: 8px; }
.sidebar-item a { font-size: 0.78rem; color: #ff0000; display: inline-block; margin-top: 4px; }

.sidebar-panel-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.35);
  z-index: 9997;
  display: none;
}
.sidebar-panel-overlay.show { display: block; }

/* =========================================================
   14. SIDEBAR & MARQUEE (LEFT SIDEBAR ORIGIN)
========================================================= */

.sidebar { 
  position: fixed; 
  top: 0; 
  left: -300px; /* Hides off-screen to the LEFT (Origin) */
  width: 280px; 
  height: 100vh; 
  z-index: 2000; 
  padding: 25px; 
  transition: left 0.4s cubic-bezier(0.77, 0, 0.175, 1); 
  box-shadow: 4px 0 25px rgba(0,0,0,0.2); 
  display: flex;
  flex-direction: column;
  background: var(--glass-bg); /* Ensure it has a background */
  backdrop-filter: blur(14px);
  border-right: 1px solid var(--glass-border);
}

.sidebar.open { 
  left: 0; /* Opens to the very left edge (Origin) */
}

.sidebar-header {
  display: flex;
  justify-content: space-between; /* Logo Left, Close Button Right */
  align-items: center;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-logo-link {
  display: flex; /* Flex to align logo perfectly */
  align-items: center;
  text-decoration: none;
}

.sidebar-logo {
  width: 50px; 
  height: 50px;
  object-fit: contain;
  display: block;
}

.close-sidebar {
  background: rgba(255, 0, 0, 0.1);
  border: none;
  color: inherit;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-sidebar:hover {
  background: rgba(255, 0, 0, 0.3);
}

.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px; /* Tighter gap for cleaner look */
}

.sidebar-list li {
  padding: 12px 15px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, padding-left 0.2s;
  display: flex;
  align-items: center; /* Center icon vertically */
  gap: 12px;
  font-size: 0.95rem;
  color: inherit;
  text-align: left; /* Ensure text stays left */
}

.sidebar-list li:hover {
  background: rgba(255,255,255,0.1);
  padding-left: 20px; /* Slight movement to right indicates interaction */
}

.sidebar-list i {
  width: 20px;
  text-align: center;
  color: #ff0000; /* Brand color for icons */
}

/* Overlay (Backdrop) */
.sidebar-overlay {
  position: fixed;
  top: 0; 
  left: 0; /* Starts from origin */
  width: 100%; 
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1999;
  display: none;
  backdrop-filter: blur(5px);
}

.sidebar-overlay.show { 
  display: block; 
}

/* Scrollbars for Sidebar */
.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-track { background: rgba(255,255,255,0.12); border-radius: 10px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.35); border-radius: 10px; }

/* Brand Marquee (Top of page) */
.brand-marquee { width: 100%; overflow: hidden; background: rgba(255, 255, 255, 0.05); border-radius: 12px; padding: 10px 0; }
.brand-track { display: flex; gap: 40px; animation: scroll-left 20s linear infinite; width: fit-content; }
.brand-track img { width: 180px; height: 120px; object-fit: contain; background: transparent; border-radius: 10px; padding: 10px; transition: 0.3s; }
.brand-track img:hover { opacity: 1; transform: scale(1.1); }

@keyframes scroll-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.brand-track.clone { position: absolute; left: 100%; animation: scroll2 18s linear infinite; }
.ad-card { width: 240px; height: 160px; flex-shrink: 0; margin-right: 24px; }
.ad-card img { width: 100%; height: 100%; object-fit: contain; }

@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@keyframes scroll2 { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* =========================================================
   15. RESPONSIVE
========================================================= */

@media (max-width: 768px) {
  .search-input { width: 95%; font-size: 0.85rem; }
  .category-bar { gap: 8px; width: 95%; }
  .category-btn { font-size: 0.8rem; padding: 8px 14px; }
  .notify-popup { width: 90%; right: 5%; }
  .notify-bell { right: 16px; bottom: 16px; }
  .sidebar-panel { width: 80%; left: -80%; } /* Responsive Left */
  .brand-marquee { width: 100%; overflow-x: hidden; }
  .brand-track img { width: 110px; padding: 6px; }
  .ad-card { width: 200px; height: 140px; }
  .steps-container { flex-direction: column; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .guarantee-list { text-align: left; }
  .rich-content-section { padding: 20px; }
  
  /* Sidebar Mobile */
  .sidebar { width: 260px; }
  .sidebar-logo { width: 40px; height: 40px; }
}

@media (max-width: 480px) {
  .search-input { width: 92%; padding: 10px; font-size: 0.8rem; }
  .category-btn { padding: 6px 12px; font-size: 0.75rem; }
  .sidebar-panel { width: 88% !important; left: -88% !important; } /* Responsive Left */
  .notify-popup { width: 92%; right: 4%; font-size: 0.85rem; }
  .brand-track img { width: 90px; padding: 4px; }
  .ad-card { width: 180px; height: 120px; }
  a[href="index.html"] { top: 60px !important; right: 10px !important; }
}

/* =========================================================
   16. GLOBAL FIXES
========================================================= */

html, body { overflow-x: hidden; box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }
.provider-card, .provider-card * { pointer-events: auto; position: relative; z-index: 1; }
.sidebar-panel-overlay:not(.show), .sidebar-overlay:not(.show), .popup-overlay:not(.show) { pointer-events: none !important; }
/* =========================================================
   SCROLL INDICATOR STYLES
========================================================= */

.scroll-indicator {
  position: absolute;
  bottom: -15px; /* Sits at the bottom edge */
  right: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--glass-bg);
  border: 1px solid var(--accent-color);
  padding: 8px 15px;
  border-radius: 30px;
  color: var(--accent-color);
  font-size: 0.85rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  z-index: 10;
  
  /* Animation to draw attention */
  animation: float-hint 2s ease-in-out infinite;
}

.scroll-indicator i {
  font-size: 1rem;
}

@keyframes float-hint {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-5px); }
}


/* =========================================================
   MOBILE OPTIMIZATION (SMALLER CARDS)
========================================================= */

@media (max-width: 480px) {
  /* Shrink the cards to fit more on small screens */
  .provider-card {
    min-width: 280px; /* Reduced from 320px */
    max-width: 280px;
    padding: 15px; /* Less padding */
  }

  /* Adjust text sizes to fit smaller cards */
  .provider-card strong {
    font-size: 0.9rem; /* Reduced from 0.95rem */
    margin-bottom: 3px;
  }

  .provider-city {
    font-size: 0.65rem;
    margin-bottom: 6px;
  }

  .provider-desc {
    font-size: 0.75rem; /* Reduced from 0.8rem */
    margin-bottom: 12px;
    line-height: 1.3;
  }

  .btn.small {
    font-size: 0.7rem !important;
    padding: 6px 12px !important;
  }
}
.provider-results-wrapper {
  position: relative;
}
