/* ==========================================================================
   Realty Diamond Group - Custom Stylesheet
   Pixel-perfect design reproduction matching reference images
   ========================================================================== */

:root {
  --primary-red: #e51a24;
  --primary-red-hover: #c9141d;
  --primary-blue: #0056b3;
  --primary-blue-hover: #00428a;
  --sky-blue: #1d72b8;
  --dark-heading: #111827;
  --body-text: #4b5563;
  --muted-text: #6b7280;
  --border-light: #e5e7eb;
  --bg-light: #f9fafb;
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.1);
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-xl: 12px;
  --radius-pill: 50px;
  --transition: all 0.28s ease-in-out;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  color: var(--body-text);
  background-color: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

/* Typography Helpers */
.text-accent-red {
  color: var(--primary-red) !important;
}

.section-tag {
  color: var(--sky-blue);
  font-size: 0.815rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.section-title {
  color: var(--dark-heading);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.22;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
}

.section-description {
  color: #555555;
  font-size: 0.96rem;
  line-height: 1.68;
  max-width: 680px;
  margin: 0 auto;
}

/* Custom Buttons */
.btn-custom-red {
  background-color: var(--primary-red);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.65rem 1.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--primary-red);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  cursor: pointer;
}

.btn-custom-red:hover {
  background-color: var(--primary-red-hover);
  border-color: var(--primary-red-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(229, 26, 36, 0.35);
}

.btn-custom-white {
  background-color: #ffffff;
  color: #004b97;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.65rem 1.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid #ffffff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  cursor: pointer;
}

.btn-custom-white:hover {
  background-color: #f8fafc;
  color: var(--primary-red);
  border-color: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.btn-custom-blue {
  background-color: var(--primary-blue);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.7rem 1.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--primary-blue);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  cursor: pointer;
}

.btn-custom-blue:hover {
  background-color: var(--primary-blue-hover);
  border-color: var(--primary-blue-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 86, 179, 0.35);
}

/* ==========================================================================
   Header & Navbar
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1020;
  background-color: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  transform: translateY(0);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.site-header.nav-hidden {
  transform: translateY(-100%);
  pointer-events: none;
}

.navbar {
  padding: 0.75rem 0;
}

.navbar-brand img {
  height: 44px;
  width: auto;
  object-fit: contain;
  display: block;
}

.navbar-nav .nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: #2b3340;
  padding: 0.5rem 1.25rem !important;
  transition: var(--transition);
}

.navbar-nav .nav-link:hover {
  color: var(--primary-red);
}

.navbar-nav .nav-link.active {
  color: var(--primary-red) !important;
  font-weight: 600;
}

/* ==========================================================================
   Hero Section - Desktop (>= 992px)
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  background-color: #020612;
  color: #ffffff;
  padding: clamp(2.5rem, 5vh, 4rem) 0;
}

@media (min-width: 992px) {
  .hero-section {
    background: url('../images/home.jpg') center right / cover no-repeat;
  }

  .hero-about {
    background: url('../images/home2.jpg') center right / cover no-repeat;
  }

  .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
      90deg,
      rgba(2, 6, 18, 0.96) 0%,
      rgba(2, 6, 18, 0.92) 30%,
      rgba(2, 6, 18, 0.74) 46%,
      rgba(2, 6, 18, 0.30) 62%,
      rgba(2, 6, 18, 0.05) 74%,
      rgba(2, 6, 18, 0) 82%,
      rgba(2, 6, 18, 0) 100%
    );
    z-index: 1;
  }
}

/* ==========================================================================
   Hero Section - Mobile & Tablet (< 992px)
   Half-image at top with full framing + smooth black gradient bottom half
   ========================================================================== */
@media (max-width: 991.98px) {
  .hero-section,
  .hero-about {
    min-height: calc(100vh - 68px);
    min-height: calc(100dvh - 68px);
    background: #020612 !important;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: stretch;
    padding-top: 38vh;
    padding-bottom: 50px !important;
    overflow: hidden;
  }

  /* Top Half: Photo shows full image clearly */
  .hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background-image: url('../images/home.jpg');
    background-position: center top;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 0;
    pointer-events: none;
  }

  /* About Us Hero Top Half Photo */
  .hero-about::before {
    background-image: url('../images/home2.jpg') !important;
    background-position: center top !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
  }

  /* Half of gradient of black: plane/clear at top, smooth transition to deep black at bottom half */
  .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
      180deg,
      rgba(2, 6, 18, 0) 0%,
      rgba(2, 6, 18, 0) 22%,
      rgba(2, 6, 18, 0.48) 34%,
      rgba(2, 6, 18, 0.94) 45%,
      #020612 52%,
      #020612 100%
    );
    z-index: 1;
    pointer-events: none;
  }

  .hero-content {
    position: relative;
    z-index: 2;
    max-width: 100%;
    text-align: left;
    margin-top: auto;
    margin-bottom: 0;
  }
}

@media (max-width: 767.98px) {
  .hero-section,
  .hero-about {
    min-height: calc(100vh - 64px);
    min-height: calc(100dvh - 64px);
    padding-top: 34vh;
    padding-bottom: 50px !important;
  }

  .hero-section::before {
    height: 49%;
  }

  .hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(2, 6, 18, 0) 0%,
      rgba(2, 6, 18, 0) 20%,
      rgba(2, 6, 18, 0.48) 33%,
      rgba(2, 6, 18, 0.94) 44%,
      #020612 50%,
      #020612 100%
    );
  }
}


.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #38bdf8;
  font-size: 0.925rem;
  font-weight: 600;
  margin-bottom: 1.15rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.hero-badge svg {
  width: 17px;
  height: 17px;
}

.hero-title {
  font-size: clamp(2.6rem, 4.2vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin-bottom: 1.15rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
  .hero-title {
    font-size: clamp(2rem, 7.5vw, 2.45rem);
    line-height: 1.15;
    margin-bottom: 0.9rem;
  }
}

.hero-description {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #e2e8f0;
  margin-bottom: 2rem;
  max-width: 580px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
  .hero-description {
    font-size: 0.885rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 100%;
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 480px) {
  .hero-actions {
    gap: 0.75rem;
  }
  .hero-actions .btn-custom-red,
  .hero-actions .btn-custom-blue {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

/* ==========================================================================
   Section: Who We Are
   ========================================================================== */
.who-we-are-section {
  padding: 2.75rem 0 2.25rem;
  background-color: #ffffff;
}

.who-we-are-content h2 {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.18;
  color: var(--dark-heading);
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .who-we-are-content h2 {
    font-size: 2.2rem;
  }
}

.who-we-are-content p {
  color: #4b5563;
  font-size: 0.95rem;
  line-height: 1.72;
  margin-bottom: 2rem;
}

.who-we-are-img-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 100%;
  min-height: 380px;
}

.who-we-are-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.who-we-are-img-wrapper:hover img {
  transform: scale(1.03);
}

/* ==========================================================================
   Section: Stats Strip
   ========================================================================== */
.stats-section {
  background: linear-gradient(90deg, #02071a 0%, #060e33 46%, #68050e 84%, #7a0812 100%);
  padding: 8.5rem 0;
  min-height: 320px;
  display: flex;
  align-items: center;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.stats-inner-wrap {
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.stat-divider {
  width: 3.5px;
  height: 72px;
  background-color: #ffffff;
  border-radius: 2px;
  opacity: 0.95;
  flex-shrink: 0;
}

.stat-body {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 3.75rem;
  font-weight: 800;
  line-height: 1;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-red);
  margin-top: 0.45rem;
  white-space: nowrap;
}

@media (max-width: 991.98px) {
  .stats-section {
    padding: 7rem 0;
    min-height: 280px;
  }
}

@media (max-width: 767.98px) {
  .stats-section {
    padding: 5.5rem 0;
    min-height: auto;
  }

  .stats-inner-wrap {
    flex-direction: column;
    align-items: center;
    gap: 2.75rem;
  }

  .stat-item {
    width: 100%;
    max-width: 270px;
    justify-content: flex-start;
  }
}

/* ==========================================================================
   Section: Our Expertise
   ========================================================================== */
.expertise-section {
  padding: 2.5rem 0 1.25rem;
  background-color: #ffffff;
}

.expertise-card {
  position: relative;
  height: 360px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  cursor: pointer;
}

.expertise-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.18);
}

.expertise-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.expertise-card:hover .expertise-card-bg {
  transform: scale(1.08);
}

.expertise-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.94) 0%,
    rgba(0, 0, 0, 0.72) 42%,
    rgba(0, 0, 0, 0.15) 75%,
    rgba(0, 0, 0, 0.05) 100%
  );
  z-index: 1;
}

.expertise-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 1.35rem;
  z-index: 2;
  color: #ffffff;
}

.expertise-number {
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--primary-red);
  text-stroke: 1.5px var(--primary-red);
  margin-bottom: 0.4rem;
  letter-spacing: 0.5px;
  display: block;
}

.expertise-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.expertise-desc {
  font-size: 0.815rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
  margin-bottom: 0;
}

/* ==========================================================================
   Section: Why Realty Diamond Group
   ========================================================================== */
.why-us-section {
  padding: 1.25rem 0 1.5rem;
  background-color: #ffffff;
}

.why-card {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem 1.4rem;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.02);
}

.why-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.why-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  border: 1.5px solid #dbeafe;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.4rem;
  color: var(--sky-blue);
  background-color: #f0f7ff;
}

.why-icon-box svg {
  width: 22px;
  height: 22px;
}

.why-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--dark-heading);
  line-height: 1.35;
  margin-bottom: 0.85rem;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.why-card-desc {
  font-size: 0.84rem;
  color: #4b5563;
  line-height: 1.62;
  margin-bottom: 0;
}

/* Banner: The Right Property Is Closer Than You Think */
.closer-banner {
  margin-top: 2rem;
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: url('../images/img6.jpg') center center / cover no-repeat;
  min-height: 320px;
  display: flex;
  align-items: center;
  box-shadow: var(--shadow-lg);
}

.closer-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(5, 8, 15, 0.94) 0%,
    rgba(5, 8, 15, 0.82) 48%,
    rgba(5, 8, 15, 0.28) 100%
  );
  z-index: 1;
}

.closer-banner-content {
  position: relative;
  z-index: 2;
  padding: 3.5rem 3.5rem;
  max-width: 580px;
  color: #ffffff;
}

.closer-banner-title {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

@media (max-width: 768px) {
  .closer-banner-content {
    padding: 2.5rem 1.75rem;
  }
  .closer-banner-title {
    font-size: 2rem;
  }
}

.closer-banner-desc {
  font-size: 0.925rem;
  color: #d1d5db;
  line-height: 1.65;
  margin-bottom: 1.75rem;
}

/* ==========================================================================
   Section: Recent Sales
   ========================================================================== */
.recent-sales-section {
  padding: 1.75rem 0 2.25rem;
  background-color: #ffffff;
}

.property-card {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 0.9rem;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.property-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.property-img-wrapper {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 240px;
}

.property-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.property-card:hover .property-img-wrapper img {
  transform: scale(1.05);
}

.property-badge-sold {
  position: absolute;
  top: 14px;
  right: 14px;
  background-color: var(--primary-red);
  color: #ffffff;
  font-size: 0.725rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 0.25rem 0.9rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 8px rgba(229, 26, 36, 0.4);
}

.property-body {
  padding: 1.15rem 0.6rem 0.5rem;
}

.property-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--dark-heading);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.property-location {
  font-size: 0.85rem;
  color: var(--muted-text);
  margin-bottom: 0.85rem;
}

.property-details-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f1f5f9;
  padding-top: 0.85rem;
  margin-top: 0.5rem;
}

.property-specs {
  font-size: 0.85rem;
  color: #4b5563;
  font-weight: 500;
}

.property-price {
  margin-left: auto;
  text-align: right;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--dark-heading);
  letter-spacing: -0.01em;
}

/* ==========================================================================
   Section: Client Stories (Testimonials)
   ========================================================================== */
.client-stories-section {
  padding: 2rem 0 2.25rem;
  background-color: #ffffff;
}

.testimonial-track-container {
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-top: 14px;
  padding-bottom: 1.25rem;
  padding-left: 4px;
  padding-right: 4px;
  margin-top: -14px;
  scroll-behavior: smooth;
}

.testimonial-track-container::-webkit-scrollbar {
  display: none;
}

.testimonial-grid {
  display: flex;
  gap: 1.5rem;
  flex-wrap: nowrap;
}

.testimonial-card {
  min-width: 320px;
  max-width: 380px;
  flex: 1 0 auto;
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.85rem;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
  border-color: #cbd5e1;
}

.testimonial-quote {
  font-style: italic;
  font-size: 0.875rem;
  color: #4b5563;
  line-height: 1.68;
  margin-bottom: 1.75rem;
}

.testimonial-author-box {
  margin-top: auto;
}

.testimonial-author-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--dark-heading);
  margin-bottom: 0.2rem;
}

.testimonial-author-role {
  font-size: 0.725rem;
  font-weight: 700;
  color: var(--primary-red);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 0;
}

/* Slider Controls */
.testimonial-nav-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 2rem;
}

.nav-arrow-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background-color: #ffffff;
  color: var(--dark-heading);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.nav-arrow-btn:hover {
  background-color: var(--primary-red);
  border-color: var(--primary-red);
  color: #ffffff;
}

/* ==========================================================================
   Section: Join Our Team
   ========================================================================== */
.join-team-section {
  position: relative;
  background: url('../images/img3.jpg') center center / cover no-repeat;
  color: #ffffff;
  padding: 2.5rem 0;
  text-align: center;
}

.join-team-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(140, 20, 28, 0.88) 0%,
    rgba(75, 15, 30, 0.90) 30%,
    rgba(15, 20, 36, 0.95) 75%,
    rgba(8, 12, 24, 0.98) 100%
  );
  z-index: 1;
}

.join-team-content {
  position: relative;
  z-index: 2;
}

.join-team-tag {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.825rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  display: inline-block;
}

.join-team-title {
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.18;
  color: #ffffff;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

@media (max-width: 768px) {
  .join-team-title {
    font-size: 2.35rem;
  }
}

.join-team-desc {
  font-size: 0.95rem;
  color: #e2e8f0;
  max-width: 680px;
  margin: 0 auto 3.5rem;
  line-height: 1.68;
}

.join-feature-col {
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .join-feature-col:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.2);
  }
}

.join-feature-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.45rem;
}

.join-feature-desc {
  font-size: 0.825rem;
  color: #cbd5e1;
  max-width: 280px;
  margin: 0 auto;
  line-height: 1.55;
}

/* ==========================================================================
   Section: Let's Connect
   ========================================================================== */
.contact-section {
  padding: 2.25rem 0 2.75rem;
  background-color: #ffffff;
}

.contact-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--dark-heading);
  letter-spacing: -0.01em;
  margin-bottom: 0.85rem;
  text-transform: uppercase;
}

.contact-description {
  color: var(--muted-text);
  font-size: 0.925rem;
  line-height: 1.68;
  margin-bottom: 2rem;
  max-width: 520px;
}

.custom-form .form-control {
  border: 1px solid #9ca3af;
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  font-size: 0.925rem;
  color: var(--dark-heading);
  background-color: #ffffff;
  transition: var(--transition);
}

.custom-form .form-control:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.15);
  outline: none;
}

.custom-form .form-control::placeholder {
  color: #6b7280;
  font-size: 0.9rem;
}

.contact-img-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 100%;
  min-height: 440px;
}

.contact-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   About Us Page Styles
   ========================================================================== */
.our-story-section {
  padding: 2.5rem 0;
  background-color: #ffffff;
}

.story-heading {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--dark-heading);
  letter-spacing: -0.02em;
  margin-bottom: 1.75rem;
}

@media (max-width: 768px) {
  .story-heading {
    font-size: 2.15rem;
  }
}

.story-p {
  font-size: 0.95rem;
  color: #4b5563;
  line-height: 1.72;
  margin-bottom: 1.35rem;
}

.story-img-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 100%;
  min-height: 420px;
}

.story-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.story-img-wrapper:hover img {
  transform: scale(1.03);
}

/* ==========================================================================
   Section: Our Agents (About Page)
   ========================================================================== */
.agents-section {
  padding: 2.5rem 0;
  background-color: #ffffff;
}

.agent-profile-card {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 1rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.agent-profile-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.agent-card-img-wrap {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  height: 320px;
  flex-shrink: 0;
}

@media (min-width: 992px) {
  /* In 4-column grid (agents.html), scale image height proportionally to column width */
  .col-lg-3 .agent-card-img-wrap {
    height: 270px;
  }

  /* In 3-column grid (about.html - matches reference image), use fixed 320px */
  .col-lg-4 .agent-card-img-wrap {
    height: 320px;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .agent-card-img-wrap {
    height: 290px;
  }
}

.agent-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.5s ease;
}

.agent-profile-card:hover .agent-card-img-wrap img {
  transform: scale(1.04);
}

.agent-card-body {
  padding: 1.15rem 0.5rem 0.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.agent-card-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--dark-heading);
  margin-bottom: 0.2rem;
}

.agent-card-location {
  font-size: 0.85rem;
  color: var(--muted-text);
  margin-bottom: 1rem;
}

.agent-contact-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.agent-contact-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background-color: #fff1f2;
  border: 1px solid #ffe4e6;
  color: var(--primary-red);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.agent-contact-icon svg {
  width: 15px;
  height: 15px;
}

.agent-contact-text {
  display: flex;
  flex-direction: column;
}

.agent-contact-label {
  font-size: 0.65rem;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1;
  margin-bottom: 2px;
}

.agent-contact-val {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--dark-heading);
  text-decoration: none;
  line-height: 1.25;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.agent-contact-val:hover {
  color: var(--primary-red);
}

/* Career Banner */
.career-banner {
  margin-top: 3.5rem;
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #000 url('../images/home2.jpg') right center / cover no-repeat;
  min-height: 370px;
  display: flex;
  align-items: center;
  box-shadow: var(--shadow-lg);
}

.career-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.95) 0%,
    rgba(0, 0, 0, 0.88) 45%,
    rgba(0, 0, 0, 0.3) 80%,
    rgba(0, 0, 0, 0.08) 100%
  );
  z-index: 1;
}

.career-banner-content {
  position: relative;
  z-index: 2;
  padding: 3.5rem 3.5rem;
  max-width: 580px;
  color: #ffffff;
}

.career-banner-title {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

@media (max-width: 768px) {
  .career-banner-content {
    padding: 2.5rem 1.75rem;
  }
  .career-banner-title {
    font-size: 2rem;
  }
}

.career-banner-desc {
  font-size: 0.925rem;
  color: #d1d5db;
  line-height: 1.65;
  margin-bottom: 1.75rem;
}

/* ==========================================================================
   Section: FAQ
   ========================================================================== */
.faq-section {
  padding: 2.5rem 0 2.75rem;
  background-color: #ffffff;
}

.faq-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background-color: #ffffff;
  margin-bottom: 1rem;
  transition: all 0.25s ease;
  overflow: hidden;
}

.faq-card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-sm);
}

.faq-card .accordion-button {
  background-color: #ffffff;
  box-shadow: none;
  padding: 1.15rem 1.25rem;
  font-size: 0.925rem;
  font-weight: 700;
  color: var(--dark-heading);
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.faq-card .accordion-button::before {
  content: "+";
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--dark-heading);
  display: inline-block;
  line-height: 1;
  transition: transform 0.25s ease;
}

.faq-card .accordion-button:not(.collapsed)::before {
  content: "−";
  color: var(--primary-red);
}

.faq-card .accordion-button::after {
  margin-left: auto;
  filter: grayscale(1);
  transform-origin: center;
}

.faq-card .accordion-button:not(.collapsed) {
  color: var(--primary-red);
}

.faq-card .accordion-body {
  padding: 0 1.25rem 1.25rem 2.25rem;
  font-size: 0.885rem;
  color: #4b5563;
  line-height: 1.65;
}

/* ==========================================================================
   Modals Backdrop Blur & Common Popup Styling
   ========================================================================== */
.modal-backdrop {
  background-color: rgba(11, 19, 41, 0.58) !important;
  transition: opacity 0.25s ease, backdrop-filter 0.25s ease;
}

.modal-backdrop.show {
  opacity: 1 !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.modal {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overscroll-behavior: contain !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y !important;
}

.modal-dialog {
  overscroll-behavior: contain !important;
}

.modal-content {
  overscroll-behavior: contain !important;
}

html.modal-open,
body.modal-open {
  overflow: hidden !important;
  height: 100% !important;
  overscroll-behavior: none !important;
}

/* ==========================================================================
   Join As An Agent Application Modal (Matching Exact Reference Screenshot)
   ========================================================================== */
.join-agent-modal .modal-dialog {
  max-width: 960px;
  margin: 1.75rem auto;
}

.join-agent-modal .modal-content {
  border: none;
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  background-color: #ffffff;
  padding: 2.75rem 3rem;
  position: relative;
}

@media (max-width: 768px) {
  .join-agent-modal .modal-content {
    padding: 2rem 1.25rem;
    border-radius: var(--radius-lg);
  }
}

.join-agent-modal .modal-close-btn {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid #f87171;
  background-color: transparent;
  color: #e51a24;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
  z-index: 10;
}

.join-agent-modal .modal-close-btn:hover {
  background-color: #fff1f2;
  border-color: #e51a24;
  transform: scale(1.05);
}

.join-agent-modal .modal-close-btn svg {
  width: 18px;
  height: 18px;
}

.join-modal-tag {
  color: #0056b3;
  font-size: 0.825rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  display: block;
  margin-bottom: 0.5rem;
}

.join-modal-title {
  color: #111827;
  font-size: 2.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .join-modal-title {
    font-size: 1.75rem;
    padding-right: 2.5rem;
  }
}

.join-modal-sub {
  color: #6b7280;
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.join-form-subtitle {
  font-style: italic;
  font-weight: 700;
  color: #111827;
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.join-form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.4rem;
  display: block;
}

.required-star {
  color: #e51a24;
  font-weight: 700;
  font-size: 0.95em;
  margin-left: 2px;
  line-height: 1;
  display: inline-block;
}

.was-validated .form-control:invalid,
.form-control.is-invalid,
.was-validated .form-select:invalid,
.form-select.is-invalid {
  border-color: #e51a24 !important;
}

.was-validated .form-control:invalid:focus,
.was-validated .form-select:invalid:focus {
  box-shadow: 0 0 0 3px rgba(229, 26, 36, 0.15) !important;
}

.was-validated .form-check-input:invalid {
  border-color: #e51a24 !important;
}

.join-agent-modal .form-control,
.join-agent-modal .form-select {
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  color: #111827;
  background-color: #ffffff;
  transition: var(--transition);
}

.join-agent-modal .form-select {
  padding-right: 2.25rem !important;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  background-position: right 0.85rem center;
}

.join-agent-modal .form-control:focus,
.join-agent-modal .form-select:focus {
  border-color: #0038ff;
  box-shadow: 0 0 0 3px rgba(0, 56, 255, 0.12);
  outline: none;
}

.join-agent-modal .form-control::placeholder {
  color: #9ca3af;
  font-size: 0.875rem;
}

.join-agent-modal textarea.form-control {
  min-height: 100px;
  resize: vertical;
}

/* Radio buttons */
.license-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}

.license-radio-group .form-check {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
}

.license-radio-group .form-check-input {
  width: 18px;
  height: 18px;
  margin: 0;
  border: 1.5px solid #111827;
  cursor: pointer;
  accent-color: #0022d6;
}

.license-radio-group .form-check-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #111827;
  cursor: pointer;
  margin: 0;
}

/* Resume upload wrapper */
.resume-upload-wrapper {
  position: relative;
  cursor: pointer;
}

.resume-upload-wrapper input[type="file"] {
  display: none;
}

.resume-upload-fake {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: #9ca3af;
  background-color: #ffffff;
  cursor: pointer;
  transition: var(--transition);
}

.resume-upload-wrapper:hover .resume-upload-fake {
  border-color: #0038ff;
}

.resume-upload-fake svg {
  color: #111827;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Checkbox agreement */
.confirm-check-group {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 1.5rem 0 1.75rem;
}

.confirm-check-group .form-check-input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  border: 1.5px solid #111827;
  border-radius: 3px;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: #0022d6;
}

.confirm-check-group .form-check-label {
  font-size: 0.875rem;
  color: #111827;
  font-weight: 500;
  line-height: 1.45;
  cursor: pointer;
}

/* Submit application button */
.btn-submit-app {
  background-color: #0022d6;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 2.25rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.btn-submit-app:hover {
  background-color: #0019b8;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 34, 214, 0.28);
}

/* ==========================================================================
   Contact Us Modal (Matching Exact Reference Screenshot)
   ========================================================================== */
.contact-popup-modal .modal-dialog {
  max-width: 980px;
  margin: 1.75rem auto;
}

.contact-popup-modal .modal-content {
  border: none;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.28);
  background-color: #ffffff;
  position: relative;
}

.contact-modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid #f87171;
  background-color: #ffffff;
  color: #e51a24;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
  z-index: 20;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.contact-modal-close:hover {
  background-color: #fff1f2;
  border-color: #e51a24;
  transform: scale(1.05);
}

.contact-modal-close svg {
  width: 18px;
  height: 18px;
}

.contact-modal-form-col {
  padding: 3.5rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 991px) {
  .contact-modal-form-col {
    padding: 2.5rem 1.75rem;
  }
}

.contact-modal-title {
  font-size: 2.1rem;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.01em;
  margin-bottom: 0.65rem;
  text-transform: uppercase;
}

.contact-modal-desc {
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.contact-popup-modal .form-control {
  border: 1px solid #9ca3af;
  border-radius: 6px;
  padding: 0.8rem 1rem;
  font-size: 0.92rem;
  color: #111827;
  background-color: #ffffff;
  transition: var(--transition);
}

.contact-popup-modal .form-control:focus {
  border-color: #004b97;
  box-shadow: 0 0 0 3px rgba(0, 75, 151, 0.12);
  outline: none;
}

.contact-popup-modal .form-control::placeholder {
  color: #6b7280;
  font-size: 0.885rem;
}

.contact-popup-modal textarea.form-control {
  min-height: 130px;
  resize: vertical;
}

.btn-contact-modal-submit {
  background-color: #004b97;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 2.25rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.btn-contact-modal-submit:hover {
  background-color: #003870;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 75, 151, 0.3);
}

.contact-modal-img-col {
  position: relative;
  overflow: hidden;
  min-height: 480px;
}

@media (max-width: 991.98px) {
  .contact-modal-img-col {
    display: none !important;
  }
}

.contact-modal-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ==========================================================================
   Footer (Matching Exact Reference Design)
   ========================================================================== */
.site-footer {
  background-color: #03071e;
  color: #8c9cb6;
  padding: 5.5rem 0 2.5rem;
}

.footer-brand-wrap {
  display: block;
}

.footer-brand-info {
  width: 100%;
}

.footer-brand-title {
  font-size: 2.35rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
  line-height: 1.1;
}

.footer-desc {
  font-size: 0.925rem;
  color: #8c9cb6;
  line-height: 1.68;
  max-width: 320px;
  margin-bottom: 0;
}

.footer-social-title {
  margin-top: 1.75rem;
  margin-bottom: 1rem;
}

.footer-social-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.footer-social-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-red);
  text-decoration: none;
  background-color: transparent;
  transition: var(--transition);
}

.footer-social-icon:hover {
  border-color: var(--primary-red);
  background-color: var(--primary-red);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(229, 26, 36, 0.35);
}

.footer-column-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

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

.footer-links-list li {
  margin-bottom: 0.95rem;
}

.footer-links-list a {
  color: #8c9cb6;
  text-decoration: none;
  font-size: 0.925rem;
  transition: var(--transition);
}

.footer-links-list a:hover {
  color: #ffffff;
  padding-left: 2px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  font-size: 0.925rem;
  color: #8c9cb6;
  line-height: 1.5;
}

.footer-contact-link {
  color: #8c9cb6;
  text-decoration: none;
  transition: var(--transition);
}

.footer-contact-link:hover {
  color: #ffffff;
}

.footer-contact-item svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--primary-red);
}

.footer-bottom-bar {
  border-top: none;
  margin-top: 2.25rem;
  padding-top: 0;
}

.footer-bottom-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  color: #8c9cb6;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.footer-bottom-links a {
  color: #8c9cb6;
  text-decoration: none;
  font-size: 0.875rem;
  transition: var(--transition);
}

.footer-bottom-links a:hover {
  color: #ffffff;
}

/* Notification Toast */
.custom-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: #0f172a;
  color: #ffffff;
  padding: 16px 24px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.custom-toast.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.custom-toast.success {
  border-left: 4px solid #10b981;
}

/* ==========================================================================
   Comprehensive Mobile & Tablet Responsive Optimizations
   (Strictly scoped to max-width: 991.98px so larger screens remain 100% untouched)
   ========================================================================== */

/* Universal mobile overflow protection */
html, body {
  overflow-x: clip;
  max-width: 100%;
}

/* Tablet & Mobile Screens (<= 991.98px) */
@media (max-width: 991.98px) {
  /* Header & Navbar */
  .site-header {
    padding: 0.25rem 0;
  }

  .navbar-toggler {
    border: 1px solid var(--border-light);
    padding: 0.45rem 0.65rem;
    border-radius: var(--radius-sm);
    color: var(--dark-heading);
    box-shadow: none !important;
  }

  .navbar-toggler:focus {
    box-shadow: 0 0 0 2px rgba(229, 26, 36, 0.2) !important;
  }

  .navbar-collapse {
    background: #ffffff;
    padding: 1.25rem 1.2rem;
    margin-top: 0.75rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-light);
  }

  .navbar-nav {
    gap: 0.35rem;
    margin-bottom: 1.15rem;
  }

  .navbar-nav .nav-link {
    padding: 0.65rem 0.95rem !important;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
  }

  .navbar-nav .nav-link:hover,
  .navbar-nav .nav-link.active {
    background-color: #fff1f2;
  }

  .btn-contact-nav {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 0.75rem 1rem;
  }

  /* Section Padding Optimization for Tablets - Compact Modern Spacing */
  .who-we-are-section,
  .expertise-section,
  .why-us-section,
  .recent-sales-section,
  .client-stories-section,
  .join-team-section,
  .contact-section,
  .our-story-section,
  .agents-section,
  .faq-section {
    padding-top: 1.85rem !important;
    padding-bottom: 1.85rem !important;
  }

  /* Image wrappers in 2-col layouts */
  .who-we-are-img-wrapper,
  .story-img-wrapper,
  .contact-img-wrapper {
    min-height: 320px;
    max-height: 420px;
    margin-top: 2rem;
  }

  /* Expertise & Why Us Sections in Tablet */
  .expertise-section {
    padding-top: 3.5rem;
    padding-bottom: 1.25rem;
  }

  .why-us-section {
    padding-top: 1.25rem;
    padding-bottom: 3.5rem;
  }

  .expertise-card {
    height: 320px;
    margin-bottom: 1.5rem;
  }

  /* Modals on Tablet */
  .join-agent-modal .modal-dialog,
  .contact-popup-modal .modal-dialog {
    max-width: 90%;
    margin: 1.5rem auto;
  }

  .join-agent-modal .modal-content {
    padding: 2.5rem 2rem;
  }
}

/* Mobile Screens (<= 767.98px) */
@media (max-width: 767.98px) {
  /* Section Padding Optimization for Mobile - Compact Modern Spacing */
  .who-we-are-section,
  .expertise-section,
  .why-us-section,
  .recent-sales-section,
  .client-stories-section,
  .join-team-section,
  .contact-section,
  .our-story-section,
  .agents-section,
  .faq-section {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
  }

  /* Typography adjustments */
  .section-tag {
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
  }

  .section-title {
    font-size: 1.95rem;
    line-height: 1.2;
    margin-bottom: 0.75rem;
  }

  .section-description {
    font-size: 0.885rem;
    line-height: 1.6;
  }

  .who-we-are-content h2,
  .story-heading {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 1.15rem;
  }

  .who-we-are-content p,
  .story-p {
    font-size: 0.9rem;
    line-height: 1.65;
    margin-bottom: 1.25rem;
  }

  .who-we-are-img-wrapper,
  .story-img-wrapper,
  .contact-img-wrapper {
    min-height: 250px;
    max-height: 320px;
    margin-top: 1.5rem;
    border-radius: var(--radius-lg);
  }

  /* Expertise & Why Us on Mobile */
  .expertise-section {
    padding-top: 2.75rem !important;
    padding-bottom: 1rem !important;
  }

  .why-us-section {
    padding-top: 1rem !important;
    padding-bottom: 2.75rem !important;
  }

  .expertise-card {
    height: 270px;
    margin-bottom: 1.25rem;
  }

  .expertise-card-content {
    padding: 1.35rem 1.15rem;
  }

  .expertise-number {
    font-size: 1.85rem;
    margin-bottom: 0.35rem;
  }

  .expertise-title {
    font-size: 1.05rem;
    margin-bottom: 0.3rem;
  }

  .expertise-desc {
    font-size: 0.8rem;
    line-height: 1.5;
  }

  /* Why Us Cards & Banners */
  .why-card {
    padding: 1.5rem 1.25rem;
  }

  .closer-banner,
  .career-banner {
    min-height: 280px;
    margin-top: 2.25rem;
    border-radius: var(--radius-lg);
  }

  .closer-banner-content,
  .career-banner-content {
    padding: 2.25rem 1.35rem;
  }

  .closer-banner-title,
  .career-banner-title {
    font-size: 1.75rem;
    line-height: 1.2;
    margin-bottom: 0.75rem;
  }

  .closer-banner-desc,
  .career-banner-desc {
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1.35rem;
  }

  /* Property Cards on Mobile */
  .property-card {
    padding: 0.75rem;
    border-radius: var(--radius-lg);
  }

  .property-img-wrapper {
    height: 210px;
    border-radius: var(--radius-md);
  }

  .property-body {
    padding: 1rem 0.35rem 0.25rem;
  }

  .property-title {
    font-size: 1.05rem;
  }

  .property-price {
    font-size: 1.1rem;
  }

  /* Mobile-only: Left-align agents header CTA button */
  .agents-header-cta {
    justify-content: flex-start !important;
    text-align: left !important;
  }

  /* Agent Cards on Mobile (2-Column Grid / 2 Cross-Axis Count) */
  .agents-section .row {
    --bs-gutter-x: 0.65rem;
    --bs-gutter-y: 0.85rem;
  }

  .agent-profile-card {
    padding: 0.45rem 0.35rem 0.45rem;
    border-radius: var(--radius-md);
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  }

  .agent-card-img-wrap {
    height: 140px;
    border-radius: 6px;
    overflow: hidden;
  }

  .agent-card-img-wrap img {
    object-position: center top;
  }

  .agent-card-body {
    padding: 0.45rem 0.1rem 0.1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
  }

  .agent-card-name {
    font-size: 0.875rem;
    font-weight: 800;
    margin-bottom: 0.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .agent-card-location {
    font-size: 0.68rem;
    color: var(--muted-text);
    margin-bottom: 0.45rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .agent-contact-row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.32rem;
    min-width: 0;
  }

  .agent-contact-icon {
    width: 22px;
    height: 22px;
    border-radius: 5px;
    flex-shrink: 0;
  }

  .agent-contact-icon svg {
    width: 11px;
    height: 11px;
  }

  .agent-contact-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
    overflow: hidden;
  }

  .agent-contact-label {
    font-size: 0.52rem;
    margin-bottom: 1px;
    line-height: 1;
    letter-spacing: 0.03em;
    font-weight: 700;
    text-transform: uppercase;
    color: #94a3b8;
  }

  .agent-contact-val {
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: -0.015em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    max-width: 100%;
    line-height: 1.22;
  }

  @media (max-width: 360px) {
    .agent-profile-card {
      padding: 0.35rem 0.25rem;
    }

    .agent-contact-row {
      gap: 0.25rem;
    }

    .agent-contact-icon {
      width: 19px;
      height: 19px;
    }

    .agent-contact-icon svg {
      width: 10px;
      height: 10px;
    }

    .agent-contact-label {
      font-size: 0.48rem;
    }

    .agent-contact-val {
      font-size: 0.56rem;
      letter-spacing: -0.02em;
    }
  }

  /* Testimonials on Mobile */
  .testimonial-card {
    min-width: 275px;
    max-width: 82vw;
    padding: 1.65rem 1.25rem;
    border-radius: var(--radius-md);
  }

  .testimonial-quote {
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 1.35rem;
  }

  /* Join Team Section on Mobile */
  .join-team-section {
    padding: 4rem 0 !important;
  }

  .join-team-title {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 1rem;
  }

  .join-team-desc {
    font-size: 0.885rem;
    line-height: 1.6;
    margin-bottom: 2.25rem;
  }

  .join-feature-col {
    margin-bottom: 1.5rem;
  }

  /* Contact Section Form */
  .contact-title {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
  }

  .contact-description {
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
  }

  /* FAQ on Mobile */
  .faq-card .accordion-button {
    padding: 1rem 1.1rem;
    font-size: 0.875rem;
  }

  .faq-card .accordion-body {
    padding: 0 1.1rem 1.1rem 1.85rem;
    font-size: 0.85rem;
  }

  /* Footer on Mobile */
  .site-footer {
    padding: 3.25rem 0 2rem;
    position: relative;
  }

  .site-footer .container {
    position: relative;
  }

  .site-footer .row {
    --bs-gutter-y: 2.25rem;
  }

  /* Mobile Brand Row: Clean full width */
  .footer-brand-wrap {
    display: block !important;
  }

  .footer-brand-info {
    width: 100% !important;
  }

  .footer-brand-title {
    font-size: 1.85rem;
    margin-bottom: 0.75rem;
  }

  .footer-desc {
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 0 !important;
    max-width: 100%;
  }

  .footer-social-title {
    margin-top: 1.35rem;
    margin-bottom: 0.85rem;
  }

  /* Horizontal social icons on mobile */
  .footer-social-wrap {
    position: static !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0.85rem !important;
    z-index: 1;
    margin: 0 !important;
    padding: 0 !important;
  }

  .footer-social-icon {
    width: 40px;
    height: 40px;
    border-color: rgba(255, 255, 255, 0.28);
  }

  .footer-social-icon svg {
    width: 17px;
    height: 17px;
  }

  .footer-column-title {
    font-size: 1.05rem;
    margin-bottom: 0.85rem;
    margin-top: 0;
  }

  .footer-links-list li {
    margin-bottom: 0.65rem;
  }

  .footer-links-list a,
  .footer-contact-item,
  .footer-contact-link {
    font-size: 0.875rem;
  }

  .footer-contact-item {
    margin-bottom: 0.85rem;
    padding-right: 55px;
  }

  .footer-bottom-bar {
    border-top: none;
    margin-top: 1.5rem;
    padding-top: 0;
  }

  .footer-bottom-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding-right: 55px;
  }

  .footer-bottom-links {
    display: flex;
    flex-direction: row !important;
    align-items: center !important;
    gap: 1.5rem !important;
  }

  /* Modals on Mobile */
  .join-agent-modal .modal-dialog,
  .contact-popup-modal .modal-dialog {
    margin: 0.75rem;
    max-width: calc(100% - 1.5rem);
  }

  .join-agent-modal .modal-content {
    padding: 2.25rem 1.25rem 1.75rem;
    border-radius: var(--radius-lg);
  }

  .join-agent-modal .modal-title {
    font-size: 1.55rem;
    line-height: 1.2;
  }

  .join-agent-modal .modal-subtitle {
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
  }

  .join-agent-modal .form-section-title {
    font-size: 0.95rem;
    margin-bottom: 1rem;
  }

  .join-agent-modal .modal-close-btn {
    top: 1.25rem;
    right: 1.25rem;
    width: 34px;
    height: 34px;
  }

  .contact-modal-form-col {
    padding: 2.25rem 1.25rem 1.75rem;
    width: 100%;
  }

  .contact-modal-title {
    font-size: 1.65rem;
    padding-right: 2.5rem;
  }

  .contact-modal-desc {
    font-size: 0.85rem;
    margin-bottom: 1.35rem;
  }

  .contact-modal-img-col {
    display: none !important;
  }

  .contact-modal-close {
    top: 1rem;
    right: 1rem;
    width: 34px;
    height: 34px;
  }
}

/* Extra Small Phones (<= 480px) */
@media (max-width: 480px) {
  .hero-actions .btn-custom-red,
  .hero-actions .btn-custom-white,
  .hero-actions .btn-custom-blue {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .license-radio-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
  }

  .footer-bottom-links {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.25rem;
  }
}

/* ==========================================================================
   Our Agents Section Pagination & Transitions
   ========================================================================== */
.agents-page-grid {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.agents-page-grid.page-hidden {
  display: none !important;
}

.agents-page-grid.page-fade-in {
  animation: agentGridFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes agentGridFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.agents-pagination-wrap {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-lg);
  padding: 1rem 1.5rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.custom-agents-pagination {
  gap: 0.5rem;
  display: inline-flex;
  align-items: center;
}

.custom-agents-pagination .page-item {
  display: inline-flex;
}

.custom-agents-pagination .page-item .page-link {
  color: #1f2937;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  width: 42px;
  height: 42px;
  min-width: 42px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background-color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.custom-agents-pagination .page-item .page-link svg {
  display: block;
  width: 18px;
  height: 18px;
  margin: auto;
  pointer-events: none;
}

.custom-agents-pagination .page-item .page-link:hover {
  background-color: #f3f4f6;
  border-color: #cbd5e1;
  color: #004b97;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.custom-agents-pagination .page-item.active .page-link {
  background-color: #004b97 !important;
  border-color: #004b97 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(0, 75, 151, 0.32);
}

.custom-agents-pagination .page-item.disabled .page-link {
  color: #9ca3af !important;
  background-color: #f9fafb !important;
  border-color: #e5e7eb !important;
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.55;
  box-shadow: none;
  transform: none !important;
}

@media (max-width: 767.98px) {
  .agents-pagination-wrap {
    padding: 0.85rem 1rem;
  }

  .custom-agents-pagination {
    gap: 0.4rem;
  }

  .custom-agents-pagination .page-item .page-link {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 8px;
    font-size: 0.9rem;
  }

  .custom-agents-pagination .page-item .page-link svg {
    width: 16px;
    height: 16px;
  }
}

/* ==========================================================================
   Smooth Opening & Page Entrance Animations
   ========================================================================== */
@keyframes heroBadgeEntrance {
  0% {
    opacity: 0;
    transform: translateY(-16px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroTitleEntrance {
  0% {
    opacity: 0;
    transform: translateY(28px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroDescEntrance {
  0% {
    opacity: 0;
    transform: translateY(22px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroActionsEntrance {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero-badge {
  animation: heroBadgeEntrance 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.hero-title {
  animation: heroTitleEntrance 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.22s both;
}

.hero-description {
  animation: heroDescEntrance 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.38s both;
}

.hero-actions {
  animation: heroActionsEntrance 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.52s both;
}

/* ==========================================================================
   Smooth Scroll Reveal Animations (Intersection Observer Powered)
   ========================================================================== */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Modal Smooth Scale-in Entrance Animation */
.modal.fade .modal-dialog {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  transform: scale(0.93) translateY(16px);
  opacity: 0;
}

.modal.show .modal-dialog {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* Button & Interactive Element Micro-interactions */
.btn-custom-red,
.btn-custom-blue,
.btn-custom-white {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.25s ease,
              box-shadow 0.25s ease,
              border-color 0.25s ease;
}

.btn-custom-red:active,
.btn-custom-blue:active,
.btn-custom-white:active {
  transform: scale(0.97) !important;
}
