:root {
  --primary-blue: #0d2857;
  /* Dark Navy from new header */
  --accent-yellow: #ffc107;
  /* Yellow for buttons */
  --bg-light: #f5f8ff;
  /* Light blue background */
  --bg-white: #ffffff;
  --text-dark: #212529;
  --text-secondary: #5f6c7d;
  --border-color: #e0e5f0;
  --accent-blue: #00baf2;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
}

/* Top Search Section */
.top-search-section {
  background-color: var(--bg-white);
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.top-search-section .slogan {
  font-weight: 600;
  color: var(--primary-blue);
  font-size: 1.1rem;
  text-align: center;
}

.search-wrapper {
  position: relative;
  width: 100%;
}

#search-input {
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.8rem 1rem 0.8rem 3rem;
  font-size: 1rem;
}

.search-wrapper .fa-search {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-size: 1.2rem;
}

#search-results {
  position: absolute;
  top: 110%;
  left: 0;
  width: 100%;
  background: var(--bg-white);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  max-height: 300px;
  overflow-y: auto;
}

#search-results .list-group-item {
  border: none;
}

#search-results .list-group-item:hover {
  background-color: var(--bg-light);
}

/* New Header Styling */
.new-header {
  background-color: var(--primary-blue);
  padding: 0.5rem 0;
  position: sticky;
  top: 0;
  z-index: 1020;
}

.new-header .navbar-brand {
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--bg-white);
}

.new-header .nav-link {
  color: var(--bg-white) !important;
  font-weight: 500;
  padding: 0.5rem 1rem;
}

.new-header .nav-link:hover {
  opacity: 0.8;
}

.new-header .dropdown-menu {
  border-radius: 10px;
}

.new-header .header-contact {
  color: var(--bg-white);
  font-weight: 500;
}

.new-header .btn-try-free {
  background-color: var(--accent-yellow);
  color: var(--text-dark);
  border-radius: 8px;
  font-weight: 600;
  padding: 0.6rem 1.2rem;
}

/* New Hero Section Styling */
.hero-section {
  background-color: var(--bg-white);
  padding: 60px 0;
}

.hero-section .sub-headline {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero-section .headline {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--primary-blue);
  line-height: 1.2;
}

.hero-form .nav-pills .nav-link {
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-weight: 500;
  border-radius: 8px;
  margin-right: 10px;
}

.hero-form .nav-pills .nav-link.active {
  background-color: var(--primary-blue);
  color: var(--bg-white);
  border-color: var(--primary-blue);
}

.hero-form .form-control {
  background-color: #fafbff;
  border: 1px solid var(--border-color);
  padding: 1rem;
  border-radius: 8px;
}

.hero-form .btn-quote {
  background-color: var(--accent-yellow);
  font-weight: 600;
  padding: 1rem;
  width: 100%;
  border-radius: 8px;
}

.hero-section .hero-image img {
  border-radius: 15px;
  max-width: 100%;
}

/* Service Cards Styling */
.services-section {
  padding: 40px 0;
}

.service-card {
  background-color: var(--bg-white);
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: 0 4px 25px rgba(0, 41, 112, 0.08);
}

.service-card h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--primary-blue);
}

.service-icon-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.service-item {
  text-align: center;
  text-decoration: none;
  color: var(--text-dark);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
}

.service-item:hover {
  color: #00baf2;
  transform: translateY(-5px);
}

.service-item .icon-wrapper {
  width: 60px;
  height: 60px;
  margin: 0 auto 10px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.view-all-btn .icon-wrapper {
  border: 2px dashed #d0d8e6;
  background-color: transparent;
  color: var(--text-secondary);
}

.icon-blue {
  background-color: #e0f5fe;
  color: #00baf2;
}

.icon-green {
  background-color: #e3fcef;
  color: #198754;
}

.icon-orange {
  background-color: #fff0e1;
  color: #fd7e14;
}

.icon-purple {
  background-color: #f3e8ff;
  color: #6f42c1;
}

.icon-red {
  background-color: #ffe8e8;
  color: #dc3545;
}

.icon-teal {
  background-color: #e0fbf6;
  color: #20c997;
}

/* Modal Styling */
.modal-header {
  border-bottom: none;
}

.modal-title {
  font-weight: 600;
  color: var(--primary-blue);
}

.modal-body .service-icon-grid {
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
}

/* NEW: Promo Banner Section */
.promo-banner-section {
  padding: 20px 0;
}

.promo-banner {
  background: linear-gradient(90deg, #00aeff, #00bfff);
  color: var(--bg-white);
  border-radius: 50px;
  padding: 15px 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.promo-banner:hover {
  transform: scale(1.02);
  color: var(--bg-white);
}

.promo-banner-content {
  display: flex;
  align-items: center;
}

.promo-icon {
  background-color: var(--bg-white);
  color: var(--accent-blue);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-right: 20px;
}

.promo-text h5 {
  font-weight: 700;
  margin-bottom: 0;
  font-size: 1.2rem;
}

.promo-text p {
  margin-bottom: 0;
  opacity: 0.9;
}

.promo-button {
  border: 2px solid var(--bg-white);
  border-radius: 30px;
  padding: 8px 20px;
  font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .top-search-section .slogan {
    margin-top: 1rem;
  }

  .hero-section {
    text-align: center;
  }

  .hero-image {
    margin-top: 2rem;
  }
}

@media (max-width: 768px) {
  .service-icon-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-section .headline {
    font-size: 2.5rem;
  }

  .promo-banner {
    flex-direction: column;
    text-align: center;
    border-radius: 20px;
    padding: 20px;
  }

  .promo-button {
    margin-top: 15px;
  }
}

/* NEW: Footer Section */
.footer {
  background-color: var(--bg-white);
  padding-top: 2rem;
}

.footer-content {
  border-top: 1px solid var(--border-color);
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer-copyright {
  font-weight: 500;
  color: var(--text-secondary);
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-social span {
  font-weight: 500;
  color: var(--text-secondary);
}

.footer-social a {
  background-color: var(--text-dark);
  color: var(--bg-white);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background-color 0.2s;
}

.footer-social a:hover {
  background-color: #00baf2;
}

.footer-credits {
  text-align: center;
  padding-bottom: 1.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-credits a {
  color: var(--primary-blue);
  font-weight: 600;
  text-decoration: none;
}

.footer-bar {
  height: 12px;
  background: linear-gradient(90deg, #00baf2 50%, #0d2857 50%);
}
/* Mart Page Specific Styling */
.mart-section {
  padding: 40px 0;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 25px;
}

/* Best Offers Section */
.offer-card {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  color: var(--bg-white);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.offer-card:hover {
  transform: translateY(-5px);
}

.offer-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.offer-card .offer-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0) 100%
  );
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.offer-card h4 {
  font-weight: 700;
  font-size: 1.5rem;
}

.offer-card p {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 1rem;
}

.offer-card .btn-offer {
  background-color: var(--bg-white);
  color: var(--primary-blue);
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  align-self: flex-start;
}

/* UPDATED: Shop by Category Section */
.shop-category-item {
  text-decoration: none;
  display: block;
  transition: transform 0.2s ease-in-out;
}

.shop-category-item:hover {
  transform: translateY(-5px);
}

.category-image-wrapper {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.category-image-wrapper img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.category-title-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 1.1rem;
}

/* Color styles for overlays */
.bg-pink-light {
  background-color: rgba(255, 235, 240, 0.9);
}

.bg-green-light {
  background-color: rgba(230, 255, 240, 0.9);
}

.bg-blue-light {
  background-color: rgba(230, 245, 255, 0.9);
}

.bg-yellow-light {
  background-color: rgba(255, 250, 230, 0.9);
}

.category-subtitle {
  text-align: center;
  margin-top: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* Top Deals Section */
.deal-item {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease-in-out;
}

.deal-item:hover {
  border-color: var(--primary-blue);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
}

.deal-info {
  display: flex;
  align-items: center;
}

.deal-info img {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  margin-right: 1rem;
}

.deal-info h6 {
  font-weight: 600;
  margin-bottom: 0;
}

.deal-info p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 0;
}

.deal-item .btn-view {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-dark);
  font-weight: 500;
  border-radius: 8px;
  padding: 0.4rem 1rem;
}

.deal-item .btn-view:hover {
  background-color: var(--bg-light);
}

/* Agent Login Modal Styling */
#agentLoginModal .modal-content {
  border-radius: 12px;
  border: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

#agentLoginModal .modal-header {
  background-color: var(--primary-blue);
  color: var(--bg-white);
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

#agentLoginModal .btn-primary {
  background-color: var(--accent-yellow);
  color: var(--text-dark);
  font-weight: 600;
  border-radius: 8px;
  border: none;
}

#agentLoginModal .btn-primary:hover {
  background-color: #e0a800;
}

/* ===== Brand Store (Mart) — Cards & Logos ===== */
.brand-card {
  display: block;
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1rem;
  text-decoration: none;
  color: var(--text-dark);
  height: 100%;
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    border-color 0.18s ease;
}
.brand-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-blue);
  box-shadow: 0 10px 24px rgba(13, 40, 87, 0.08);
  color: var(--text-dark);
}
.brand-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  margin-bottom: 0.75rem;
}
.brand-logo {
  max-width: 100%;
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: saturate(1.05);
}
.brand-name {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.15rem;
}
.brand-meta {
  margin: 0 0 0.75rem 0;
  color: var(--text-secondary);
  font-size: 0.875rem;
}
.btn-shop {
  background-color: var(--accent-yellow);
  color: var(--text-dark);
  font-weight: 600;
  border-radius: 8px;
  padding: 0.35rem 0.7rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.btn-shop:hover {
  filter: brightness(0.98);
  color: var(--text-dark);
}

/* Make search input look nice on mobile, too */
@media (max-width: 576px) {
  #search-input {
    font-size: 0.95rem;
  }
}
