/* Default Desktop Images */
.slide-1 {
    background-image: url('img/slides/1.jpg');
    background-size: cover;
    background-position: center;
    background-color: #35383d;
}

.slide-2 {
    background-image: url('img/slides/4.jpg');
    background-size: cover;
    background-position: center;
    background-color: #35383d;
}
.text-dark-red {
  color: #8B0000; /* DarkRed color */
}

/* Mobile View - Swap Background Images */
@media (max-width: 767px) {
    .slide-1 {
        background-image: url('/img/slides/BUILDING 1-mobile-view.jpg'); /* Add a mobile-specific image */
    }

    .slide-2 {
        background-image: url('img/slides/4-mobile.jpg'); /* Add a mobile-specific image */
    }

    #home {
        height: 70vh !important; /* Reduce height on mobile */
    }

    .owl-item {
        min-height: 70vh; /* Ensure minimum height */
    }

    /* Adjust text sizes for mobile */
    .text-12 {
        font-size: 2.5rem !important; /* Reduce large heading */
    }

    .text-5 {
        font-size: 1.5rem !important;
    }

    .text-4 {
        font-size: 1rem !important;
    }

    .container {
        padding: 15px !important; /* Adjust padding */
    }

    /* Center content better on mobile */
    .d-flex.flex-column {
        padding: 0 15px;
    }
}


/* Custom Modal Styling */
.modal-sm .modal-content {
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  width: 100%;
}

.modal-dialog {
  margin: 0;
  max-width: 640px; /* Desktop width remains 640px */
}

#aboutUsModal .modal-body {
  padding: 1rem;
}

#aboutUsModal .form-control {
  font-size: 0.9rem;
  padding: 0.5rem;
}

#aboutUsModal .btn {
  font-size: 0.9rem;
  padding: 0.5rem;
}

/* Custom Backdrop Styling */
.modal-backdrop {
  background-color: rgba(0, 0, 0, 0.6);
}

.modal-backdrop.show {
  opacity: 1;
}
/* Ensure modal doesn’t block too much content */
@media (max-width: 767px) {
  #aboutUsModal .modal-dialog {
    max-width: 400px;
    width: 90%; /* Slightly narrower to avoid covering too much */
    margin: 0 auto;
    bottom: 10px;
    left: auto;
    right: auto;
  }
}

@media (min-width: 768px) {
  #aboutUsModal .modal-dialog {
    max-width: 640px;
    margin: 0 20px 20px auto; /* Align to bottom-right on desktop */
    bottom: 20px;
    right: 20px;
    left: auto;
  }
}