  /* ==========================================================================
   1. Root Variables & Reset
   ========================================================================== */
:root {
  --gm-navy: #1b263b;
  --gm-navy-dark: #0f172a;
  --gm-orange: #F4A261;
  --gm-orange-hover: #e76f51;
  --gm-teal: #00A389;
  --gm-teal-hover: #008f7b;
  --gm-bg-light: #f8f9fa;
  --gm-text-dark: #2c3e50;
  --gm-text-muted: #6c757d;
  --gm-border-color: #edf2f7;
  --gm-radius-sm: 6px;
  --gm-radius-md: 12px;
  --gm-radius-circle: 50%;
  --gm-shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
  --gm-shadow-md: 0 10px 25px rgba(0,0,0,0.08);
  --gm-transition: all 0.3s ease;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  overflow-x: hidden;
  font-family: 'Open Sans', system-ui, -apple-system, sans-serif;
  color: var(--gm-text-dark);
  background-color: #ffffff;
  line-height: 1.4;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

html::-webkit-scrollbar, body::-webkit-scrollbar {
  display: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   2. Layout & Containers
   ========================================================================== */
.gm-container,
.counts-container,
.gm-custom-container,
.custom-container,
.mahir-custom-container {
  width: 100%;
  max-width: 1200px;
  margin-right: auto;
  margin-left: auto;
  padding-right: 20px;
  padding-left: 20px;
}

.gm-row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -15px;
  margin-right: -15px;
}

.gm-section-title,
.section-title-wrap,
.section-title,
.mahir-section-header {
  text-align: center;
  margin-bottom: 45px;
}

.gm-section-title h2,
.main-title,
.section-title h2,
.mahir-section-header h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--gm-navy);
}

.gm-title-divider {
  width: 50px;
  height: 3px;
  background-color: var(--gm-orange);
  margin: 12px auto;
}

.gm-section-title p,
.section-title p,
.mahir-section-header p {
  color: var(--gm-text-muted);
  font-size: 15px;
}

/* ==========================================================================
   3. Header & Navigation Component
   ========================================================================== */
.gm-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 997;
  padding: 20px 0;
  background: transparent;
}

.gm-nav-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gm-navbar-brand {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  letter-spacing: -0.5px;
}

.gm-nav-menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 30px;
}

.gm-nav-menu a {
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  transition: var(--gm-transition);
}

.gm-nav-menu a:hover,
.gm-nav-menu li.active > a {
  color: var(--gm-orange);
}

.gm-desktop-auth {
  display: flex;
  align-items: center;
}

.nav-btn {
  padding: 10px 20px;
  min-width: 100px;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 5px;
  margin-left: 10px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.6s ease-in-out, color 0.6s ease-in-out, border-color 0.6s ease-in-out;
}

.login-btn {
  background-color: var(--gm-orange);
  color: #212529;
  border: 2px solid var(--gm-orange);
}

.login-btn:hover {
  background-color: #e59352;
  color: #ffffff;
  border-color: #e59352;
}

.register-btn {
  background-color: var(--gm-teal);
  color: #ffffff;
  border: 2px solid var(--gm-teal);
}

.register-btn:hover {
  background-color: var(--gm-teal-hover);
  color: #ffffff;
  border-color: var(--gm-teal-hover);
}

.gm-mobile-toggle {
  display: none;
  background: transparent;
  border: 2px solid #ffffff;
  border-radius: 4px;
  font-size: 20px;
  color: #ffffff;
  cursor: pointer;
  padding: 6px 10px;
  margin-left: 10px;
  line-height: 1;
}

/* Container alignment */
.navbar-btns.ms-auto {
  margin-left: auto;
}

/* Base dropdown positioning */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Profile image styling (replaces Bootstrap .rounded-circle) */
.profile-img img.rounded-circle {
  border-radius: 50%;
  object-fit: cover;
}

.profile-img img {
  width: 36px;
  height: 36px;
  border: 2px solid #F4A261;
  transition: 0.3s;
  display: block;
}

.profile-img img:hover {
  border-color: #F4A261;
  box-shadow: 0 0 10px rgba(244,162,97,0.6);
}

/* Dropdown menu styling */
.dropdown-menu {
  display: none; /* Hidden by default */
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #008f7b;
  border: 1px solid #F4A261;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,143,123,0.4);
  margin-top: 8px;
  padding: 8px 0;
  list-style: none;
  min-width: 140px;
  z-index: 1000;
}

/* Active state */
.dropdown-menu.show {
  display: block;
}

.dropdown-item {
  display: block;
  width: 100%;
  padding: 8px 16px;
  color: #ffffff;
  text-decoration: none;
  transition: 0.3s;
  box-sizing: border-box;
}

.dropdown-item:hover {
  background-color: #F4A261;
  color: #000000;
}

/* Remove dropdown arrow */
.profile-img.dropdown-toggle::after {
  display: none !important;
}

/* ==========================================================================
   4. Hero Section Component
   ========================================================================== */
.gm-hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 700px;
  width: 100%;
  padding: 80px 0;
  overflow: hidden;
  background-color: #0f172a;
}

.slider-background-hero {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: 
    radial-gradient(circle at 75% 25%, rgba(249, 115, 22, 0.25) 0%, transparent 45%),
    radial-gradient(circle at 25% 75%, rgba(163, 230, 53, 0.18) 0%, transparent 50%),
    linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.gm-mesh-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.gm-hero-mesh-svg {
  width: 100%;
  height: 100%;
}

.gm-floating-trade-icon {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  animation: floatTradeIcon 6s ease-in-out infinite alternate;
}

.gm-trade-driver { top: 18%; right: 18%; color: #facc15; border-color: rgba(250, 204, 21, 0.4); animation-delay: 0s; }
.gm-trade-mechanic { bottom: 22%; right: 12%; color: #a3e635; border-color: rgba(163, 230, 53, 0.4); animation-delay: -2s; }
.gm-trade-electrician { top: 25%; right: 6%; color: #f97316; border-color: rgba(249, 115, 22, 0.4); animation-delay: -1.5s; }
.gm-trade-plumber { bottom: 18%; right: 25%; color: #fde047; border-color: rgba(253, 224, 71, 0.4); animation-delay: -3.5s; }

@keyframes floatTradeIcon {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-16px) rotate(4deg); }
}

.hero-chevron-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.88) 0%, rgba(30, 41, 59, 0.7) 100%);
}

.hero-chevron-overlay::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 20%;
  height: 100%;
  background: #1e293b;
  clip-path: polygon(0 0, 100% 0, 0 50%, 100% 100%, 0 100%);
  opacity: 0.88;
}

.gm-hero-content {
  position: relative;
  z-index: 5;
  text-align: center;
}

.gm-hero-title {
  font-weight: 800;
  font-size: 3rem;
  color: #ffffff;
  margin: 0 0 15px 0;
  line-height: 1.2;
}

.gm-hero-subtitle-wrap {
  text-align: center;
  margin-bottom: 30px;
}

.gm-hero-subtitle {
  font-size: 1.25rem;
  color: #f8fafc;
  margin: 0;
  line-height: 1.5;
}

.gm-search-wrapper {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}


/* Page Hero Section */
.gm-page-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 60px 0 40px 0;
  overflow: hidden;
  background-color: #0f172a;
  text-align: center;
  clear: both;
}

.gm-page-hero .slider-background-hero {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: 
    radial-gradient(circle at 75% 25%, rgba(249, 115, 22, 0.2) 0%, transparent 45%),
    radial-gradient(circle at 25% 75%, rgba(163, 230, 53, 0.15) 0%, transparent 50%),
    linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.gm-page-hero .gm-hero-content {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.gm-page-hero .gm-hero-title {
  font-weight: 800;
  font-size: 2.5rem;
  color: #ffffff;
  margin: 0 0 10px 0;
  line-height: 1.25;
}

.gm-page-hero .gm-hero-subtitle {
  font-size: 1.2rem;
  color: #f8fafc;
  margin: 0 0 20px 0;
  line-height: 1.4;
  opacity: 0.9;
}

.gm-page-hero .gm-search-wrapper {
  width: 100%;
  max-width: 750px;
  margin: 0 auto;
}


/* Responsive Rules */
@media (max-width: 991.98px) {
  .col-md-4, .col-lg-8 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .gm-page-hero {
    padding: 40px 0 30px 0;
  }
  .gm-page-hero .gm-hero-title {
    font-size: 2rem;
  }
  .gm-page-hero .gm-hero-subtitle {
    font-size: 1.05rem;
  }
}

/*search bar **/

.search-container {
  max-width: 800px;
  margin: 3em auto;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #FFFDFD;
  position: relative;
  z-index: 1000;
}

.search-box {
  display: flex;
  gap: 12px;
  align-items: center;
  background: transparent;
  border-radius: 50px;
  box-shadow: 0 6px 25px rgba(0,0,0,0.1);
  padding: 16px 20px;
  position: relative;
  overflow: visible;
}

/* Create input reference anchor */
.input-wrapper {
  position: relative;
  flex: 1;
  width: 100%;
}

.search-input {
  width: 100%;
  padding: 12px 18px;
  border: 1px solid #01257D;
  border-radius: 30px;
  font-size: 16px;
  background: #ffffff;
  outline: none;
  box-sizing: border-box;
}

.search-input:focus {
  background: #e9f0ff;
  box-shadow: inset 0 0 5px rgba(1,37,125,0.2);
}

/* Floating fixed dropdown that escapes all parent constraints */
.dropdown-results {
  position: absolute; /* Default fallback */
  top: 100%;
  left: 0;
  width: 700px;
  border: 1px solid #2c3e50;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  list-style: none;
  margin: 8px 0 0 0;
  padding: 0;
  display: none;
  max-height: 250px;
  overflow-y: auto;
  background-color: #FFFFFF;
  color: #333333;
  z-index: 2147483647; /* Maximum integer z-index allowed in CSS */
}

/* CSS Anchor Positioning for modern browsers */
@supports (anchor-name: --search-anchor) {
  .search-input {
    anchor-name: --search-anchor;
  }
  .dropdown-results {
    position: fixed;
    position-anchor: --search-anchor;
    top: anchor(bottom);
    left: anchor(left);
    width: anchor(width);
  }
}

/* Show dropdown when input is non-empty */
.search-input:not(:placeholder-shown) ~ .dropdown-results {
  display: block;
}

.dropdown-results li {
  padding: 12px 18px;
  font-size: 15px;  
  cursor: pointer;
  transition: 0.2s;
}

.dropdown-results li:hover {
  background-color: #f0f4f8;
}

.search-select {
  flex: 1;
  padding: 12px 18px;
  border: 1px solid #01257D;
  border-radius: 30px;
  font-size: 16px;
  background: #ffffff;
}

.search-btn {
  background: #F4A261;
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  transition: 0.3s;
}

.search-btn:hover {
  background: #1b9aaa;
  cursor: pointer;
}

@media (max-width: 768px) {
  .search-box { 
    flex-direction: column; 
    border-radius: 20px; 
  }
  .search-select, .search-btn {
    width: 100%;
  }
}


/* ==========================================================================
   5. Stats / Counts Banner Component
   ========================================================================== */
#counts {

  background: var(--gm-orange);
  padding: 30px 0;
}

.counts-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
}

.count-box {
  flex: 0 0 25%;
  max-width: 25%;
  text-align: center;
  padding: 15px;
}

.count-box span {
  font-size: 48px;
  display: block;
  color: #01537D;
  font-weight: 700;
  line-height: 1.2;
}

.count-box p {
  padding: 0;
  margin: 8px 0 0 0;
  font-size: 15px;
  font-weight: 600;
  color: #37423b;
}

/* ==========================================================================
   6. Popular Categories Component
   ========================================================================== */
.gm-categories-section {
  padding: 80px 0;
  background-color: #ffffff;
}

.gm-categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.gm-category-card {
  padding: 30px 20px;
  border: 1px solid var(--gm-border-color);
  border-radius: var(--gm-radius-md);
  background: #ffffff;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: var(--gm-transition);
  cursor: pointer;
}

.gm-category-card:hover {
  box-shadow: var(--gm-shadow-md);
  transform: translateY(-5px);
  border-color: var(--gm-orange);
}

.gm-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: rgba(244, 162, 97, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  color: var(--gm-orange);
  font-size: 24px;
  transition: var(--gm-transition);
}

.gm-category-card:hover .gm-icon-wrapper {
  background-color: var(--gm-orange);
  color: #ffffff;
}

.gm-category-card h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--gm-navy);
  margin: 0;
}

/* ==========================================================================
   7. Verified Tradesmen Cards & Grid
   ========================================================================== */
.courses-section {
  background-color: #f9faf9;
  padding: 60px 0;
}

.gm-grid-row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -8px;
  margin-left: -8px;
}

.gm-col-item {
  position: relative;
  width: 100%;
  padding-right: 8px;
  padding-left: 8px;
  display: flex;
}

.profile-item-card {
  background-color: #ffffff;
  transition: 0.3s;
  overflow: hidden;
  position: relative;
  width: 100%;
  border: 1px solid #dee2e6;
  border-radius: 0.25rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
}

.profile-item-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

.designation-badge {
  background-color: var(--gm-navy);
  color: #ffffff;
  padding: 6px 12px;
  font-weight: 600;
  border-radius: 4px;
  display: inline-block;
  position: absolute;
  top: 0;
  left: 0;
  margin: 0.5rem;
  font-size: 12px;
  z-index: 10;
}

.img-container-custom {
  margin-top: 1.5rem;
  text-align: center;
  width: 100%;
}

.img-profile-photo {
  width: 130px;
  height: 130px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--gm-bg-light) !important;
  display: block;
  margin: 0 auto;
}

.profile-content-area {
  text-align: center;
  padding: 1rem;
  flex-grow: 1;
}

.profile-name-title {
  font-size: 20px;
  color: var(--gm-navy);
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.profile-map-icon {
  color: var(--gm-orange);
  margin-right: 0.25rem;
}

.price-tag-wrapper {
  margin-bottom: 1rem;
}

.profile-intro {
  width: 100%;
  margin: 10px 0;
}

.summary-text {
  font-size: 14px;
  line-height: 1.4;
  color: #444;
  text-align: left;
}

.toggle-btn-final {
  background: none;
  border: none;
  color: var(--gm-orange);
  cursor: pointer;
  padding: 0;
  font-size: 13px;
  margin-top: 5px;
  text-decoration: underline;
  font-weight: 600;
  display: inline-block;
}

.toggle-btn-final:hover {
  color: var(--gm-orange-hover);
}

.agency-footer-bar-custom {
  background-color: var(--gm-bg-light);
  border: 1px solid #dee2e6;
  border-radius: 0.25rem;
  padding: 0.5rem;
  text-align: center;
  margin-top: 1rem;
}

.contact-section-footer {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
  border-top: 1px solid #dee2e6;
  background-color: var(--gm-bg-light);
}

.gm-contact-btn {
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: flex; 
  align-items: center;
  justify-content: center;
  width: 100%;
}

.btn-whatsapp {
  border: 1px solid #25D366;
  color: #25D366;
  background: transparent;
}

.btn-whatsapp:hover {
  background-color: #25D366;
  color: #fff;
}

.btn-whatsapp i { 
  font-size: 20px; 
  margin-right: 0.5rem; 
}

.btn-call {
  background: var(--gm-navy);
  color: white;
  border: none;
}

.btn-call:hover {
  background-color: #121a29;
}

.btn-call i { 
  margin-right: 0.5rem; 
}

.white-to-orange-button {
  padding: 15px 40px;
  width: 250px;
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  background-color: var(--gm-orange);
  color: white;
  border: 2px solid var(--gm-orange);
  margin: 0 auto;
}

.small-text { font-size: 13px; }
.text-muted-custom { color: #999; }
.text-dark-custom { color: #666; font-size: 13px; }
.fw-bold-custom { font-weight: 700; }
.text-success-custom { color: #28a745; }
.text-decoration-none-custom { text-decoration: none; }
.me-1-custom { margin-right: 0.25rem; }
.text-center-custom { text-align: center; }
.mt-5-custom { margin-top: 3rem; }

/* ==========================================================================
   8. Call to Action Banner
   ========================================================================== */
.cta-section {
  position: relative;
  color: #ffffff;
  padding: 60px 20px;
  min-height: 250px;
  overflow: hidden;
  background-color: var(--gm-navy);
  background-image: repeating-linear-gradient(45deg, #1b263b, #1b263b 20px, #22334d 20px, #22334d 40px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(244, 162, 97, 0.65), rgba(27, 38, 59, 0.75));
}

.cta-content-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cta-text-block {
  flex: 1 1 65%;
}

.cta-text-block h2 {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 0;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.cta-text-block p.lead {
  font-size: 1.25rem;
  font-weight: 300;
  margin-top: 8px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.cta-action-block {
  flex: 1 1 30%;
  text-align: right;
}

.signup-btn {
  padding: 12px 30px;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 5px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  background-color: var(--gm-teal);
  color: #ffffff;
  border: 2px solid var(--gm-teal);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.signup-btn:hover {
  background-color: var(--gm-teal-hover);
  color: #ffffff;
  border-color: var(--gm-teal-hover);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   9. Explore More Professions Grid
   ========================================================================== */
#more-categories {
  padding-top: 60px;
  padding-bottom: 60px;
  background-color: #ffffff;
}

.professions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.profession-item {
  display: flex;
}

.icon-box {
  padding: 30px 20px;
  border: 1px solid #f1f1f1;
  border-radius: 12px;
  transition: all 0.3s ease;
  background: #fff;
  text-align: center;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.icon-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  border-color: #e0e0e0;
}

.icon-box img {
  height: 50px;
  width: 50px;
  object-fit: contain;
}

.icon-box h3 {
  font-size: 15px;
  margin: 0;
  font-weight: 500;
}

.icon-box h3 a {
  color: #444;
  text-decoration: none;
  transition: color 0.2s ease;
}

.icon-box h3 a:hover {
  color: var(--gm-teal);
}

/* ==========================================================================
   10. Pre-Footer Help Section
   ========================================================================== */
.pre-footer-cta {
  position: relative;
  padding: 100px 0; 
  min-height: 400px;
  overflow: hidden; 
  color: white; 
  text-align: center;
  background-color: #1a110e;
}

.slider-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 150%; 
  height: 100%;
  z-index: 0; 
  animation: slide-pan 30s linear infinite alternate;
}

.slider-background svg {
  width: 100%;
  height: 100%;
  display: block;
}

@keyframes slide-pan {
  from { transform: translateX(0); }
  to { transform: translateX(-33%); }
}

.cta-background-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(25, 40, 65, 0.85); 
  z-index: 1; 
}

.cta-content-final {
  max-width: 800px;
  margin: 0 auto;
}

.cta-content-final h2 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-top: 0;
  margin-bottom: 20px;
  letter-spacing: -1px;
  line-height: 1.2;
}

.cta-content-final p {
  font-size: 1.25rem;
  margin-top: 0;
  margin-bottom: 40px;
  font-weight: 300;
}

.gm-btn-group {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.contact-btn {
  padding: 12px 35px;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 5px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex; 
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
}

.contact-btn.call-btn {
  background-color: var(--gm-teal);
  color: white; 
  border-color: var(--gm-teal); 
}

.contact-btn.call-btn:hover {
  background-color: var(--gm-teal-hover);
  border-color: var(--gm-teal-hover);
}

.call-icon-spacer {
  margin-right: 8px;
}

.contact-btn.whatsapp-btn {
  background-color: white;
  color: #25D366;
  border-color: white;
}

.contact-btn.whatsapp-btn:hover {
  background-color: #f0f0f0;
}

.contact-btn.whatsapp-btn img {
  width: 20px;
  height: 20px;
  margin-right: 8px;
  display: block;
}

.whatsapp-pulse {
  animation: shadow-pulse 2s infinite;
}

/* Elevate Content Layer Above Overlay */
.cta-custom-container {
  position: relative;
  z-index: 10; /* Ensures text and buttons sit above z-index 1 and 2 */
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

@keyframes shadow-pulse {
  0% { box-shadow: 0 0 0 0px rgba(37, 211, 102, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0px rgba(37, 211, 102, 0); }
}

/* ==========================================================================
   11. Continuous Marquee Slider Component
   ========================================================================== */
.mahir-expert-section {
  background-color: #f9faf9;
  padding: 60px 0;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.mahir-slider-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 15px 0;
}

.mahir-slider-track {
  display: flex;
  width: max-content;
  gap: 20px;
  animation: mahirSmoothScroll 35s linear infinite;
}

.mahir-slider-wrapper:hover .mahir-slider-track {
  animation-play-state: paused;
}

@keyframes mahirSmoothScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.mahir-slide-item {
  width: 320px;
  flex-shrink: 0;
  display: flex;
}

/* ==========================================================================
   12. Footer Component
   ========================================================================== */
/* 1. Main outer padding (60px top, 20px bottom) */
.gm-footer {
  background-color: #111827;
  color: #ffffff;
  font-size: 14px;
  line-height: 1.6;
  width: 100%;
  padding: 60px 0 20px 0;
}

/* Centered Container */
.gm-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Top Section (Padding: 50px top, 40px bottom) */
.gm-footer-top {
  padding: 50px 0 40px 0;
  border-bottom: 1px solid #1f2937;
}

/* 4-Column Grid Layout (Larger Gap: 40px & Margin-Bottom: 40px) */
.gm-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
  align-items: start;
}

/* Column 1: Contact Info */
.gm-footer-contact .logo-dark,
.gm-footer-contact .logo-light {
  display: inline-block;
  margin-bottom: 15px;
}

.gm-footer-contact p {
  margin-top: 15px;
  font-size: 13px;
}

.gm-footer-contact strong {
  color: #ffffff;
}

.gm-footer-contact a {
  text-decoration: none;
  transition: color 0.3s ease;
}

.gm-footer-status {
  margin-top: 15px;
}

.gm-footer-status span {
  font-size: 12px;
  color: var(--gm-teal, #008f7b);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Columns 2 & 3: Standard Navigation */
.gm-footer-links h4,
.gm-footer-locations h4 {
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
}

.gm-footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.gm-footer-links ul li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.gm-footer-links ul li i {
  color: var(--gm-orange, #f4a261);
  font-size: 16px;
  margin-right: 6px;
}

.gm-footer-links ul a {
  color: #d1d5db;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
}

.gm-footer-links ul a:hover {
  color: var(--gm-orange, #f4a261);
  padding-left: 4px;
}

/* Column 4: Service Areas (Sub-Grid) */
.gm-footer-locations > p {
  font-size: 13px;
  margin-bottom: 15px;
  color: #9ca3af;
}

.gm-locations-subgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.gm-location-col h6 {
  color: var(--gm-orange, #f4a261);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 5px;
}

.gm-location-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 12px;
  line-height: 1.8;
}

.gm-location-col ul a {
  color: #bbb;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.gm-location-col ul a:hover {
  color: var(--gm-orange, #f4a261);
  padding-left: 5px;
}

/* Bottom Copyright Bar */
.gm-footer-bottom {
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gm-footer-bottom .copyright {
  color: #d1d5db;
  font-size: 13px;
}

.gm-footer-bottom .copyright span {
  color: #ffffff;
  font-weight: 700;
}

.gm-footer-bottom .credits {
  font-size: 12px;
  color: #9ca3af;
}

.gm-footer-bottom .credits a {
  color: var(--gm-orange, #f4a261);
  text-decoration: none;
  font-weight: 600;
}

.gm-footer-bottom .credits a:hover {
  text-decoration: underline;
}

    /* Mobile Responsiveness */
    @media (max-width: 992px) {
      .gm-footer-grid {
        grid-template-columns: 1fr 1fr;
      }
    }

    @media (max-width: 576px) {
      .gm-footer-grid {
        grid-template-columns: 1fr;
      }

      .gm-footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 8px;
      }
    }


/* ==========================================================================
   13. Responsive Breakpoints
   ========================================================================== */
@media (min-width: 576px) {
  .gm-custom-container { max-width: 540px; }
}

@media (min-width: 768px) {
  .gm-custom-container { max-width: 720px; }
  .gm-col-item { flex: 0 0 50%; max-width: 50%; }
}

@media (min-width: 992px) {
  .gm-custom-container { max-width: 960px; }
  .gm-col-item { flex: 0 0 33.333333%; max-width: 33.333333%; }
}

@media (min-width: 1200px) {
  .gm-custom-container { max-width: 1140px; }
}

@media (max-width: 1100px) {
  .gm-floating-trade-icon { display: none; }
  .hero-chevron-overlay::before { width: 100%; opacity: 0.9; clip-path: none; }
}

@media (max-width: 992px) {
  .gm-hero-section { min-height: 550px; padding: 60px 0; }
  .gm-hero-title { font-size: 2.25rem; }
  .gm-hero-subtitle { font-size: 1.1rem; }
  .gm-counters-grid, .gm-categories-grid { grid-template-columns: repeat(2, 1fr); }
  .gm-footer-grid { grid-template-columns: repeat(2, 1fr); }
  .gm-nav-menu, .gm-desktop-auth { display: none; }
  .gm-mobile-toggle { display: inline-block; }
  .professions-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 992px) {
  /* When toggled active via JS, display the menu as a dropdown */
  .gm-nav-menu.active {
    display: block !important;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #1b263b; /* Matches your navy theme */
    padding: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    z-index: 9999;
  }

  .gm-nav-menu.active ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  /* Also show desktop auth links inside the mobile menu dropdown if needed */
  .gm-nav-menu.active .gm-desktop-auth, 
  .gm-nav-menu.active .navbar-btns {
    display: flex !important;
    margin-top: 15px;
  }
}
@media (max-width: 768px) {
  .count-box { flex: 0 0 50%; max-width: 50%; margin-bottom: 20px; }
  .count-box span { font-size: 36px; }
  .cta-content-wrapper { flex-direction: column; text-align: center; }
  .cta-text-block { margin-bottom: 20px; }
  .cta-action-block { text-align: center; width: 100%; }
  .cta-text-block h2 { font-size: 2rem; }
  .pre-footer-cta { padding: 60px 0; min-height: 300px; }
  .cta-content-final h2 { font-size: 2rem; }
}

@media (max-width: 576px) {
  .gm-container { padding-right: 15px; padding-left: 15px; }
  .gm-hero-section { min-height: 480px; padding: 40px 0; }
  .gm-hero-title { font-size: 1.75rem; line-height: 1.3; }
  .gm-hero-subtitle { font-size: 0.95rem; }
  .gm-counters-grid, .gm-categories-grid, .gm-footer-grid { grid-template-columns: 1fr; }
  .professions-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
  .gm-btn-group { flex-direction: column; gap: 15px; }
  .contact-btn { width: 100%; max-width: 320px; }
  .gm-footer-bottom { flex-direction: column; text-align: center; gap: 8px; }
}

@media (max-width: 992px) {
  /* 1. Prevent the header container from growing too tall */
  .gm-header {
    padding: 12px 0;
  }

  .gm-nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
  }

  /* 2. Scale down the SVG/Img logo specifically on mobile */
  .gm-navbar-brand {
    max-width: 160px; /* Adjust according to your preferred logo width */
    display: flex;
    align-items: center;
  }

  .gm-navbar-brand svg,
  .gm-navbar-brand img {
    width: 100%;
    height: auto;
    max-height: 40px; /* Restricts vertical height on mobile */
    object-fit: contain;
  }

  /* 3. Add sufficient spacing above the Hero section on mobile */
  .gm-hero-section,
  .gm-page-hero {
    padding-top: 100px !important; /* Pushes content below the absolute header */
  }
}

@media (max-width: 576px) {
  .gm-navbar-brand {
    max-width: 130px; /* Further scale down on extra small screens */
  }

  .gm-navbar-brand svg,
  .gm-navbar-brand img {
    max-height: 32px;
  }

  .gm-hero-section,
  .gm-page-hero {
    padding-top: 90px !important;
  }
}

/** uae-professionals **/

        .location-nav-tabs {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 10px;
            margin-top: 2rem;
            padding: 0 15px;
        }
        .btn-location {
            background-color: #ffffff;
            color: #1b263b;
            border: 1px solid #e2e8f0;
            padding: 8px 18px;
            border-radius: 20px;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }
        .btn-location:hover, .btn-location.active {
            background-color: #F4A261;
            color: #ffffff;
            border-color: #F4A261;
            box-shadow: 0 4px 12px rgba(244, 162, 97, 0.25);
        }
        .state-profile-section {
            transition: opacity 0.3s ease;
            margin-bottom: 3rem;
        }
        .state-header {
            display: flex;
            align-items: center;
            margin-bottom: 1.5rem;
            padding-bottom: 0.75rem;
            border-bottom: 1px solid #e2e8f0;
        }
        .state-header h2 {
            font-size: 1.5rem;
            font-weight: 700;
            margin: 0;
            color: #1b263b;
        }
        .count-badge {
            margin-left: 1rem;
            padding: 4px 12px;
            border-radius: 50px;
            background-color: #f8f9fa;
            color: #1b263b;
            border: 1px solid #e2e8f0;
            font-size: 12px;
            font-weight: 600;
        }
