/* Basic Rules */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Roboto", sans-serif;
  font-weight: normal;
  font-style: normal;
  color: #777777;
}

i,
span,
a {
  display: inline-block;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style-type: none;
}

img {
  max-width: 100%;
}

/* Top header Styles */
@media (max-width: 1199px) {
  .toolbar-area {
    display: none;
  }
}

.toolbar-area {
  background: #707070;
  padding: 12px 0;
}

.toolbar-area .toolbar-contact p {
  display: inline-block;
  margin-right: 25px;
  text-align: center;
  line-height: 0;
  font-size: 17px;
  color: #fff;
  position: relative;
  padding-left: 30px;
}

.toolbar-area .toolbar-contact p i {
  display: inline-block;
  margin-right: 6px;
  color: #fff;
  font-size: 17px;
  position: absolute;
  top: -8px;
  left: 0;
}

.toolbar-area .toolbar-contact p a {
  font-size: 17px;
  font-weight: 400;
  color: #fff;
  margin-right: 7px;
  transition: all 0.3s ease;
}

.toolbar-area .toolbar-sl-share ul {
  float: right;
}

.toolbar-area .toolbar-sl-share ul li {
  margin: 0;
  text-align: center;
  display: inline-block;
  margin-right: 5px;
}

.toolbar-area .toolbar-sl-share ul li a {
  color: #fff;
  height: 35px;
  width: 35px;
  text-align: center;
  display: block;
  border: 1px solid #eee;
  line-height: 36px;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Navbar Styles */
.custom-navbar {
  background-color: #d0d3d4;
}

.navbar {
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
  max-height: 70px;
}
.navbar-nav .nav-item {
  margin: 0 15px;
}

.navbar .dropdown:hover > .dropdown-menu {
  display: block;
}

.navbar .nav-link,
.dropdown-item {
  color: #4a4a4a;
  font-weight: 500;
  transition: color 0.3s, background-color 0.3s;
}

.navbar .nav-link:hover {
  color: #00008B;
  background-color: rgba(0, 123, 255, 0.1);
  border-radius: 5px;
}

.navbar .dropdown-menu {
  background-color: #d0d2d4;
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.navbar .dropdown-item {
  color: #4a4a4a;
  transition: color 0.3s, background-color 0.3s;
}

.navbar .dropdown-item:hover {
  color: #00008B;
  background-color: rgba(255, 56, 0, 0.1);
}

.btn {
  max-width: 190px;
}

.main-btn {
  overflow: hidden;
  width: 100%;
  height: 60px;
  max-width: 225px;
  text-transform: capitalize;
  color: white;
  background-color: #00008B;
  border: 2px solid #00008B;
  font-size: 17px;
  font-weight: 600;
  padding: 16px 10px;
  transition: all 0.3s ease-out 0s;
}

.main-btn:hover {
  color: #020306;
  border: 2px solid #00008B;
}

/* Carousel Styles */
.carousel-item img {
  object-fit: cover;
  height: 70vh;
}

@media (max-width: 767px) {
  .carousel-item img {
    height: 50vh;
  }
}

@media (min-width: 768px) {
  .carousel-item img {
    height: 80vh;
  }
}

.carousel-caption {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  color: white;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3),
    rgba(0, 0, 0, 0.8)
  );
  padding: 20px;
  border-radius: 10px;
}

#about-us {
  background-color: #f5f5f5;
}

/* terstimonial BLock */

.star-rating {
  font-size: 1.2rem;
  color: #f39c12;
}

.star-rating i {
  margin: 0 2px;
}

/* Styling for all Cards */
.service-card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  background-color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease,
    background-color 0.3s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  background-color: #f1f1f1;
}

.service-card .card-body {
  padding: 1.5rem;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.service-card:hover .card-body {
  opacity: 1;
}

.service-card .card-title {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.card-title {
  font-size: 1.25rem;
  font-weight: bold;
}

.card-body p {
  color: #666;
}

.service-card:focus-within {
  border: 2px solid #007bff;
  box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
}

@media (max-width: 768px) {
  .service-card {
    max-width: 100%;
  }
}

/* Footer Styling */
.footer {
  background-color: #e9ecef;
}

.footer a {
  text-decoration: none;
  color: #343a40;
}

.footer a:active {
  color: #0056b3;
}

.footer a:hover,
.footer a:focus {
  color: #007bff;
}

.footer h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #343a40;
  margin-bottom: 20px;
}

.footer p,
.footer ul {
  font-size: 1rem;
  color: #6c757d;
}

.footer ul {
  padding-left: 0;
  list-style: none;
}

.footer ul li {
  margin-bottom: 10px;
}

.footer .form-control {
  border-radius: 50px;
  box-shadow: none;
  padding: 12px;
  font-size: 1rem;
  width: 100%;
}

.footer .btn {
  background-color: #00008B;
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 12px 25px;
  font-size: 1rem;
}

.footer .btn:hover {
  background-color: #d83500;
}

@media (max-width: 767px) {
  .footer h4 {
    font-size: 1.2rem;
  }

  .footer .form-control {
    width: 100%;
  }

  .footer .btn {
    width: 100%;
  }

  .footer .col {
    margin-bottom: 30px;
  }
}

.footer hr {
  border-top: 1px solid #e0e0e0;
  margin: 20px 0;
}

.footer .fab {
  font-size: 1.5rem;
  color: #343a40;
  transition: color 0.3s ease;
}

.footer .fab:hover {
  color: #00008B;
}

@media (max-width: 768px) {
  .footer {
    padding: 20px;
    text-align: center;
  }

  .footer .col {
    max-width: 100%;
    margin-bottom: 20px;
  }

  .footer h4 {
    font-size: 1.1rem;
  }

  .footer .form-control,
  .footer .btn {
    width: 100%;
  }

  .footer .social-icons {
    justify-content: center;
    margin-top: 15px;
  }
}

/* Ensures proper layout scaling on small screens */
@media (max-width: 767px) {
  body, html {
    width: 100%;
    overflow-x: hidden;
  }

  .navbar-nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .navbar-nav .nav-item {
    margin: 5px 0;
  }

  .navbar-brand img {
    max-height: 50px;
    width: auto;
  }

  .carousel-caption {
    font-size: 0.9rem;
    padding: 10px;
  }

  .carousel-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  .main-btn {
    font-size: 15px;
    padding: 14px 8px;
  }

  .card-title {
    font-size: 1.1rem;
  }

  .card-body p {
    font-size: 0.95rem;
  }

  .toolbar-area .toolbar-contact p,
  .toolbar-area .toolbar-contact p a {
    font-size: 14px;
  }

  .toolbar-area .toolbar-contact p i {
    top: -5px;
    font-size: 14px;
  }

  .toolbar-area .toolbar-sl-share ul {
    float: none;
    text-align: center;
    margin-top: 10px;
  }

  .toolbar-area .toolbar-sl-share ul li {
    margin: 0 5px;
  }

  .service-card {
    margin-bottom: 20px;
  }

  .carousel-caption {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }
}

/* For slightly larger mobile devices */
@media (max-width: 992px) {
  .navbar-nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .navbar .nav-link {
    padding: 10px 15px;
  }

  .main-btn {
    max-width: 100%;
  }

  .carousel-caption {
    font-size: 1rem;
    padding: 15px;
  }

  .card-title {
    font-size: 1.2rem;
  }

  .card-body p {
    font-size: 1rem;
  }

  .service-card {
    margin-bottom: 30px;
  }
}
