:root {
  --primary: #f97316;
  --primary-dark: #ea580c;
  --primary-soft: #fff0e6;
  --dark: #1e293b;
  --gray-dark: #334155;
  --gray-light: #f8fafc;
  --shadow-sm: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
  --shadow-hover: 0 25px 30px -12px rgba(249, 115, 22, 0.2);
  --transition: all 0.25s ease;
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: #ffffff;
  color: var(--dark);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, .navbar-brand, .fw-heading {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
}

/* Custom orange theme */
.text-orange {
  color: var(--primary) !important;
}
.bg-orange {
  background-color: var(--primary);
}
.btn-orange {
  background: linear-gradient(105deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border: none;
  padding: 10px 28px;
  border-radius: 40px;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 4px 10px rgba(249, 115, 22, 0.2);
}
.btn-orange:hover {
  background: linear-gradient(105deg, var(--primary-dark) 0%, #c2410c 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 20px rgba(249, 115, 22, 0.3);
  color: white;
}
.btn-outline-orange {
  border: 2px solid var(--primary);
  background: transparent;
  color: var(--primary);
  border-radius: 40px;
  font-weight: 600;
  transition: var(--transition);
}
.btn-outline-orange:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}
.btn-success-whatsapp {
  background-color: #25D366;
  color: white;
  border-radius: 40px;
  font-weight: 600;
  transition: var(--transition);
}
.btn-success-whatsapp:hover {
  background-color: #1da15a;
  transform: translateY(-2px);
  color: white;
}

/* Navbar */
.navbar {
  background: rgba(255, 245, 225, 0.96) !important;
  backdrop-filter: blur(8px);
  padding: 12px 0;
  transition: all 0.2s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03), 0 4px 12px rgba(0,0,0,0.02);
}
.navbar-brand {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  background: linear-gradient(125deg, var(--primary) 30%, #f4a261 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav-link {
  font-weight: 500;
  margin: 0 6px;
  color: var(--dark);
  transition: var(--transition);
  position: relative;
  font-size: 1.2em;
  font-weight: 400;
}
.nav-link:hover, .nav-link.active {
  color: var(--primary);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: all 0.3s;
  transform: translateX(-50%);
}
.nav-link:hover::after {
  width: 70%;
}
/* Hero video background */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 92vh;
  display: flex;
  align-items: center;
}
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-video .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(107deg, rgba(0, 0, 0, 0.73) 0%, rgba(0, 0, 0, 0.668) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
}
.hero-content {
  animation: fadeUp 0.8s ease-out;
}
@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}
.search-wrapper {
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(12px);
  border-radius: 70px;
  padding: 8px;
  max-width: 650px;
  margin: 0 auto;
}
.search-wrapper .form-control {
  border-radius: 50px;
  border: none;
  padding: 14px 20px;
  font-size: 1rem;
  box-shadow: none;
}
.search-wrapper .btn-orange {
  border-radius: 50px;
  padding: 12px 32px;
}

/* Section style */
.section {
  padding: 80px 0;
}
.section-title {
  font-size: 2.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}
.section-title:after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 0;
  width: 70px;
  height: 4px;
  background: var(--primary);
  border-radius: 4px;
}
.text-center .section-title:after {
  left: 50%;
  transform: translateX(-50%);
}

/* Property Cards */
.property-card {
  border: none;
  border-radius: 24px;
  overflow: hidden;
  transition: var(--transition);
  background: white;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
.property-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 40px -20px rgba(249,115,22,0.25);
}
.property-img {
  height: 240px;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.property-card:hover .property-img {
  transform: scale(1.03);
}
.price-tag {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}
.property-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  color: white;
  padding: 5px 12px;
  border-radius: 40px;
  font-size: 0.75rem;
  font-weight: 600;
}
.btn-sm-call, .btn-sm-wa {
  font-size: 0.85rem;
  padding: 8px 0;
  border-radius: 40px;
  font-weight: 600;
}
.btn-view-details {
  background: transparent;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  border-radius: 40px;
  font-weight: 600;
  transition: all 0.2s ease;
  padding: 8px 0;
}
.btn-view-details:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

/* Service icons & cards */
.service-card {
  transition: var(--transition);
  border: 1px solid rgba(249,115,22,0.1);
  background: white;
  border-radius: 24px;
  padding: 30px 20px;
  box-shadow: var(--shadow-sm);
  height: 100%;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}
.service-icon {
  width: 80px;
  height: 80px;
  background: var(--primary-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: var(--transition);
}
.service-card:hover .service-icon {
  background: var(--primary);
  transform: scale(1.05);
}
.service-icon i {
  font-size: 2.3rem;
  color: var(--primary);
  transition: var(--transition);
}
.service-card:hover .service-icon i {
  color: white;
}

/* Why choose us */
.why-card {
  background: white;
  border-radius: 24px;
  padding: 30px 20px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  height: 100%;
  border: 1px solid rgba(249,115,22,0.1);
}
.why-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}
.why-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 20px;
}

/* Testimonial */
.testimonial-card {
  background: #fffaf5;
  border-radius: 32px;
  padding: 30px;
  border-left: 6px solid var(--primary);
  box-shadow: var(--shadow-sm);
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-radius: 48px;
  padding: 50px 40px;
}

/* Footer */
footer {
  background: #0f172a;
  color: #cbd5e1;
}
.footer-link {
  color: #94a3b8;
  text-decoration: none;
  transition: var(--transition);
}
.footer-link:hover {
  color: var(--primary);
  padding-left: 5px;
}
.social-icon {
  background: #1e293b;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: white;
  transition: var(--transition);
}
.social-icon:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

/* Gallery page specific */
.gallery-item {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
}
.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}
.gallery-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}
.gallery-item:hover .gallery-img {
  transform: scale(1.05);
}
.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-item:hover .gallery-overlay {
  opacity: 1;
}
.gallery-overlay i {
  font-size: 3rem;
  color: white;
  background: rgba(0,0,0,0.6);
  padding: 15px;
  border-radius: 50%;
  backdrop-filter: blur(4px);
}
.modal-fullscreen .modal-content {
  background: rgba(0,0,0,0.9);
  border: none;
}
.modal-fullscreen .modal-header {
  border-bottom: none;
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1050;
}
.modal-fullscreen .modal-body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.modal-fullscreen img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}
.btn-close-white {
  filter: invert(1);
}

/* Service page specific enhancements */
.process-step {
  position: relative;
  padding: 2rem;
  background: white;
  border-radius: 28px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.process-step:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.step-number {
  width: 60px;
  height: 60px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 1.8rem;
  font-weight: 800;
  border-radius: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: var(--transition);
}
.process-step:hover .step-number {
  background: var(--primary);
  color: white;
}
.page-header {
    background: linear-gradient(107deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.5) 100%), url('https://images.unsplash.com/photo-1582407947304-fd86f028f716?q=80&w=1296&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
  background-size: cover;
  background-position: center 40%;
  min-height: 50vh;
  display: flex;
  align-items: center;
}

/* Contact page specific enhancements */
.contact-card {
  background: white;
  border-radius: 28px;
  padding: 30px 25px;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(249,115,22,0.1);
  height: 100%;
}
.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}
.contact-icon {
  width: 70px;
  height: 70px;
  background: var(--primary-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: var(--transition);
}
.contact-card:hover .contact-icon {
  background: var(--primary);
}
.contact-icon i {
  font-size: 2rem;
  color: var(--primary);
  transition: var(--transition);
}
.contact-card:hover .contact-icon i {
  color: white;
}
.form-control {
  border-radius: 16px;
  padding: 12px 18px;
  border: 1px solid #e2e8f0;
  transition: var(--transition);
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(249,115,22,0.1);
}
.map-container {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0,0,0,0.05);
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 99;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .section {
    padding: 50px 0;
  }
  .hero {
    min-height: 75vh;
  }
  .section-title {
    font-size: 1.8rem;
  }
  .search-wrapper {
    border-radius: 40px;
  }
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
  }
}


/* Modern Preloader Styles */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  visibility: visible;
  opacity: 1;
}

#preloader.hide {
  opacity: 0;
  visibility: hidden;
}

.preloader-content {
  text-align: center;
  animation: fadeInUp 0.8s ease-out;
}

/* House animation */
.house-animation {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 30px;
}

.house-svg {
  width: 100%;
  height: 100%;
  animation: float 2s ease-in-out infinite;
}

.house-svg rect, .house-svg polygon {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: drawHouse 1.5s ease-out forwards;
}

.house-svg rect {
  animation-delay: 0.2s;
}
.house-svg polygon {
  animation-delay: 0s;
}
.house-svg circle {
  animation: pulse 1.2s infinite;
}

@keyframes drawHouse {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

@keyframes pulse {
  0% { r: 3; opacity: 0.8; }
  50% { r: 5; opacity: 1; }
  100% { r: 3; opacity: 0.8; }
}

.pulse-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border: 2px solid rgba(249,115,22,0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  animation: ringPulse 1.5s infinite;
}

@keyframes ringPulse {
  0% { transform: translate(-50%, -50%) scale(0.8); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.4); opacity: 0; }
}

/* Loading text */
.loader-text {
  margin-top: 20px;
}

.brand-text {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
  background: linear-gradient(125deg, var(--primary) 30%, #f4a261 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.3px;
  margin-bottom: 20px;
}

.progress-bar {
  width: 200px;
  height: 3px;
  background: #e2e8f0;
  border-radius: 3px;
  margin: 0 auto 15px;
  overflow: hidden;
}

.progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  border-radius: 3px;
  animation: fillProgress 2s ease-out forwards;
}

@keyframes fillProgress {
  0% { width: 0%; }
  100% { width: 100%; }
}

.tagline {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 500;
  letter-spacing: 0.3px;
  animation: fadeText 1.2s ease-out;
}

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

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

/* =========================================== */
/* ENHANCED PROPERTY DETAIL STYLES (MODERN)    */
/* =========================================== */

/* Gallery Section */
.property-gallery {
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #f8fafc;
  transition: var(--transition);
}

.main-image {
  width: 100%;
  height: 480px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.thumbnail-list {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.thumbnail {
  width: 90px;
  height: 70px;
  object-fit: cover;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.25s ease;
  opacity: 0.65;
  border: 2px solid transparent;
  filter: grayscale(0.2);
}

.thumbnail.active,
.thumbnail:hover {
  opacity: 1;
  border-color: var(--primary);
  transform: scale(1.05);
  filter: grayscale(0);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* Detail Cards - Glassmorphism + subtle border */
.detail-card {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(0px);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
  border: 1px solid rgba(249,115,22,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.detail-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(249,115,22,0.2);
}

.detail-card h3, .detail-card h4 {
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.detail-card h4:after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--primary);
  border-radius: 3px;
}

/* Specifications List */
.spec-list {
  list-style: none;
  padding-left: 0;
}

.spec-list li {
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.spec-list li strong {
  min-width: 110px;
  color: var(--dark);
}

.spec-list li span {
  color: var(--gray-dark);
}

/* Amenities Badges */
.feature-badge {
  background: linear-gradient(135deg, var(--primary-soft) 0%, #fff5ec 100%);
  color: var(--primary-dark);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 10px;
  margin-bottom: 12px;
  transition: all 0.2s ease;
  border: 1px solid rgba(249,115,22,0.2);
}

.feature-badge i {
  font-size: 0.9rem;
}

.feature-badge:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(249,115,22,0.2);
}

/* Price & Summary Card */
.price-large {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -1px;
  line-height: 1.2;
}

/* Agent Card */
.agent-card {
  background: linear-gradient(145deg, #ffffff 0%, #fef9f5 100%);
  border-radius: 28px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(249,115,22,0.15);
  transition: var(--transition);
}

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

.agent-img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 20px;
  border: 3px solid var(--primary);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* Key Highlights Icons */
.highlight-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 8px 12px;
  background: var(--gray-light);
  border-radius: 60px;
  transition: var(--transition);
}

.highlight-item:hover {
  background: var(--primary-soft);
  transform: translateX(5px);
}

.highlight-item i {
  width: 28px;
  color: var(--primary);
  font-size: 1.1rem;
}

/* Sticky right column on large screens */
@media (min-width: 992px) {
  .col-lg-5 {
    position: sticky;
    top: 100px;
    align-self: start;
  }
}

/* Responsive gallery */
@media (max-width: 768px) {
  .main-image {
    height: 320px;
  }
  .thumbnail {
    width: 70px;
    height: 55px;
  }
  .detail-card {
    padding: 20px;
  }
  .price-large {
    font-size: 1.8rem;
  }
  .feature-badge {
    padding: 5px 12px;
    font-size: 0.75rem;
  }
}

/* Map iframe styling */
.map-container iframe,
.detail-card iframe {
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}

/* Page Header */
.page-header {
  background: linear-gradient(107deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.5) 100%), url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
  background-size: cover;
  background-position: center 30%;
  min-height: 40vh;
  display: flex;
  align-items: center;
}

/* Search Form */
.search-form {
  background: white;
  border-radius: 70px;
  padding: 8px;
  box-shadow: var(--shadow-sm);
}
.search-form .form-control {
  border-radius: 50px;
  border: none;
  padding: 14px 20px;
  font-size: 1rem;
  box-shadow: none;
}
.search-form .btn-orange {
  border-radius: 50px;
  padding: 12px 32px;
}
@media (max-width: 768px) {
  .search-form {
    border-radius: 40px;
  }
}

/* Ensure all property cards have equal height */
.row.g-4 {
  display: flex;
  flex-wrap: wrap;
}
.row.g-4 > [class*="col-"] {
  display: flex;
  flex-direction: column;
}
.property-card {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-body .row.g-2 {
  margin-top: auto;
}

/* Adjust property image container for consistent size */
.position-relative.overflow-hidden {
  height: 240px;
}
.property-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Improve service card responsiveness for 5 columns */
@media (max-width: 1200px) {
  .row-cols-lg-5 > * {
    flex: 0 0 auto;
    width: 20%;
  }
}
@media (max-width: 992px) {
  .row-cols-md-3 > * {
    flex: 0 0 auto;
    width: 33.333%;
  }
}
@media (max-width: 768px) {
  .row-cols-sm-2 > * {
    flex: 0 0 auto;
    width: 50%;
  }
}
@media (max-width: 576px) {
  .row-cols-1 > * {
    flex: 0 0 auto;
    width: 100%;
  }
}

/* Ensure service cards have consistent height */
.service-card {
  height: 100%;
}


/* Hero video overlay - enhance for better text contrast */
.hero-video .overlay {
  background: linear-gradient(107deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.6) 100%);
}

/* Hero content animations */
.hero-content {
  animation: fadeUp 0.8s ease-out;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Modern search wrapper */
.search-wrapper {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(16px);
  border-radius: 60px;
  padding: 6px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.search-wrapper:hover {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Input group inside search wrapper */
.search-wrapper .input-group {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.search-wrapper .input-group-text {
  background: transparent;
  border: none;
  padding-left: 20px;
  color: var(--primary);
}

.search-wrapper .form-control {
  border: none;
  padding: 14px 0 14px 0;
  font-size: 1rem;
  background: transparent;
  box-shadow: none;
}

.search-wrapper .form-control:focus {
  outline: none;
  box-shadow: none;
  background: transparent;
}

.search-wrapper .btn-orange {
  border-radius: 50px;
  padding: 12px 24px;
  font-weight: 600;
  letter-spacing: 0.3px;
  background: linear-gradient(105deg, var(--primary) 0%, var(--primary-dark) 100%);
  border: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.search-wrapper .btn-orange:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(249, 115, 22, 0.4);
}

/* Stats badges - modern glass effect */
.backdrop-blur-sm {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  padding: 8px 20px;
  font-weight: 500;
  transition: all 0.3s ease;
  color: black;
}

.backdrop-blur-sm:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .search-wrapper {
    border-radius: 40px;
    padding: 6px;
  }
  
  .search-wrapper .input-group {
    border-radius: 40px;
  }
  
  .search-wrapper .btn-orange {
    padding: 10px 16px;
  }
  
  .backdrop-blur-sm {
    padding: 6px 16px;
    font-size: 0.9rem;
  }
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}
.alert-error {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}


/* Thank You Message Styling */
.text-center.py-5 i {
    animation: bounce 1s ease;
}
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}


.carousel-control-prev-icon, 
.carousel-control-next-icon {
  background-size: 60% 60%;
}
@media (max-width: 768px) {
  .carousel-control-prev-icon, .carousel-control-next-icon {
    width: 30px;
    height: 30px;
  }
}


/* === MODERN TESTIMONIAL SLIDER STYLES === */
.testimonial-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 32px;
    box-shadow: 0 25px 45px -12px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255,255,255,0.3);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 35px 50px -15px rgba(0,0,0,0.3);
}

.testimonial-card p.fs-5 {
    font-size: 1.4rem;
    line-height: 1.6;
    color: #1e293b;
    font-weight: 500;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: #f97316;
    border-radius: 50%;
    padding: 1.2rem;
    background-size: 50% 50%;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
    background-color: #ea580c;
    transform: scale(1.1);
}

.carousel-indicators button {
    width: 10px !important;
    height: 10px !important;
    border-radius: 50%;
    background-color: #cbd5e1 !important;
    margin: 0 6px;
    transition: all 0.2s;
}

.carousel-indicators button.active {
    background-color: #f97316 !important;
    width: 24px !important;
    border-radius: 20px;
}

/* Avatar image styling */
.testimonial-card img.rounded-circle {
    object-fit: cover;
    border: 3px solid #f97316;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* Quote icon */
.testimonial-card .fa-quote-left {
    opacity: 0.2;
    transition: opacity 0.3s;
}
.testimonial-card:hover .fa-quote-left {
    opacity: 0.4;
}

/* Responsive */
@media (max-width: 768px) {
    .testimonial-card p.fs-5 {
        font-size: 1.1rem;
    }
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        padding: 0.8rem;
        background-size: 40% 40%;
    }
    .testimonial-card {
        margin: 0 1rem;
        padding: 1rem !important;
    }
}

/* Optional: gradient background behind the section */
.bg-light {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
}
/* ========== VIDEO GALLERY STYLES ========== */
.video-card {
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    transition: transform 0.3s ease;
}

.video-card:hover .video-wrapper iframe {
    transform: scale(1.02);
}

/* REMOVED: .video-wrapper::after block – no custom play overlay */

.video-info {
    padding: 1rem 1.25rem 1.25rem;
    background: white;
}

.video-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: var(--dark);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
}

/* Responsive */
@media (max-width: 768px) {
    .video-info {
        padding: 0.75rem 1rem 1rem;
    }
    .video-title {
        font-size: 0.9rem;
    }
}

/* Pagination styling (keep as is) */
.pagination .page-link {
    color: var(--primary);
    border-radius: 50px;
    margin: 0 4px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
}

.pagination .page-link:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

.pagination .active .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

.pagination .disabled .page-link {
    color: #cbd5e1;
    background-color: #f8fafc;
}