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

/* Basic Styles */
.homepage .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Start header effect*/
.header-effect {
  margin-bottom: 50px;
  color: #111;
}

.header-effect::before,
.header-effect::after {
  content: "";
  background-color: #4B7F99;
  position: absolute;
  transform: translateX(-50%);
}

.header-effect::before {
  width: 80px;
  height: 2px;
  bottom: -20px;
  left: 50%;
}

.header-effect::after {
  left: 50%;
  bottom: -29px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 4px solid white;
}
/* End Basic style  */

/*
  == Start header 
*/
.homepage .head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0px 20px;
  background-color: #eee;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.fixed-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: #eee;
}

.homepage .navbar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.homepage .navbar li {
  margin-right: 20px;
}

.homepage .navbar a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  transition: border-bottom-color 0.3s ease, color 0.3s ease;
  padding-bottom: 5px;
}

.homepage .navbar a:hover {
  color: #4B7F99;
  border-bottom: 1px solid #4B7F99;
}

.homepage .nav-toggle {
  display: none;
}
.homepage .log-a-home {
  padding: 10px 20px;
  background-color: #4B7F99;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.homepage .log-a-home:hover {
  background-color: #23527c;
  border-color: #23527c;

}
/* Styles for small screens */
@media screen and (max-width: 767px) {
  .homepage .nav-toggle {
    display: block;
  }

  .homepage .navbar ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #eee;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
    z-index: 1000;
  }

  .homepage .navbar ul.show {
    display: flex;
  }

  .homepage .navbar ul li {
    margin: 0;
  }

  .homepage .navbar ul li a {
    display: block;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
  }

  .homepage .navbar ul li a:hover {
    background-color: #23527c;
    color: white;
  }
}
/* end Navbar  */


/* Hero Section */
.hero {
  height: 100vh;
  background-image: url('../img/hero-background.jpg');
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 50px 20px;
  position: relative;
}

.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
}

.hero .row {
  display: flex;
  padding: 0;
}

.hero-content {
  flex-basis: calc(50% - 20px);
  padding: 20px;
  z-index: 1;
  max-width: 60%;
}
.hero .hero-content h1 {
  font-size: 3rem;
}
.hero .hero-content p {
  font-size: 1.3rem;
  margin-bottom: 30px;
  line-height: 1.6;
}

.hero .contact-btn {
  background-color: var(--blue-color);
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-size: 1em;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero .contact-btn:hover {
  background-color: var(--blue-alt-color);
  color: #fff;
}

@media screen and (max-width: 767px) {
  .hero .row {
    justify-content: center;
  }

  .hero-content {
    flex-basis: 100%;
    max-width: 100%;
    margin-bottom: 30px;
  }

  .hero .hero-content p {
    font-size: 1.6rem;
  }

  .hero .contact-btn {
    padding: 18px 28px;
    font-size: 1.5rem;
  }
}

/* About Us Section */
.homepage .about {
  padding: 60px 0;
  background-color: #f7f7f7;
}

.homepage .about .about-text {
  flex-basis: calc(50% - 20px);
  padding: 0 20px;
}

.homepage .about .about-text p {
  line-height: 1.5;
  font-size: 1.3rem;
  color: var(--grey-color);
}

.homepage .about .about-image {
  flex-basis: calc(50% - 20px);
  padding: 0 20px;
}

.homepage .about .about-image img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 767px) {
  .homepage .about .about-content {
    flex-direction: column-reverse;
  }

  .about-text,
  .about-image {
    flex-basis: 100%;
  }

  .homepage .about .about-text {
    margin-bottom: 30px;
    margin-top: 20px;
  }

  .homepage .about .about-text h2 {
    margin-top: 10px;
    font-size: 3rem;
    text-align: center;
  }
  .homepage .about .about-text p {
    font-size: 2rem;
  }
}

/* start  services  section  */
.homepage .services {
  padding: 60px 0;
}
.homepage .services .row {
  padding: 30px 0;
}
.homepage .services .service-row {
  padding: 20px 0;
}
.homepage .services .col-md-6 {
  flex-basis: calc(50% - 20px);
  margin-bottom: 20px;
}
.homepage .service-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%; 
  padding: 0 20px;
}

.homepage .services h3 {
  margin-bottom: 20px;
  font-size: 1.6rem;
  color: #333;
}
.homepage .service-content p {
  font-size: 1.1rem;
  color: var(--grey-color);
}
.homepage .service-img  {
  padding: 20px;
  text-align: center;
}
.homepage .service-img img {
  border-radius: 0% 10%;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .homepage .services .service-row {
    flex-wrap: wrap;
  }
  .homepage .services .service-row .sm-o-1 {
    order: 1;
  }
  .homepage .services .service-row .sm-o-2 {
    order: 2;
  }
  .homepage .services .service-row .col-md-6 {
    flex-basis: 100%;
  }
  
  .homepage .service-content {
    text-align: center;
  }
  .homepage .services h3 {
    margin-bottom: 10px;
  }
  .homepage .service-content p {
    font-size: 1.3rem;
    padding: 5px 10px;
  }
}
/* end new services  section  */

/* Why Choose Us Section */
.homepage .why-choose-us {
  padding: 60px 0;
  background-color: #f8f8f8;
}
.homepage .why-choose-us .benefits {
  padding: 30px 0;
}
.homepage .why-choose-us h2 {
  text-align: center;
  margin-bottom: 50px;
}

.homepage .benefit {
  margin-bottom: 40px;
  padding: 20px 10px;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.homepage .benefit i {
  font-size: 38px;
  border: 2px solid transparent;
  border-radius: 50%;
  padding: 20px;
  color: #4B7F99;
  transition: transform 0.4s ease, border-color 0.3s ease;
}

.homepage .benefit:hover i {
  transform: rotate(360deg);
  border-color: #4B7F99;
}

.homepage .benefit h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  margin-top: 10px;
}

.homepage .benefit p {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--grey-color);
}

/* Responsive Styles */
@media (max-width: 768px) {
  .homepage .why-choose-us .benefits {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Contact Us Section */
.homepage .contact {
  padding: 100px 0;
}

.homepage .contact .contact-info {
  flex: 1 1 100%;
  padding-right: 20px;
  background-color: #f7f7f7;
  border-radius: 10px;
  padding: 20px;
}

.homepage .contact .contact-info h3 {
  font-size: 1.3rem;
  text-align: left;
}

.homepage .contact .info i {
  font-size: 18px;
  color: #4B7F99;
}

.homepage .contact .contact-info p {
  font-size: 20px;
}

.homepage .contact .contact-info p a {
  text-decoration: none;
  color: #333;
  transition: color 0.3s ease;
}

.homepage .contact .contact-info p a:hover {
  color: #4B7F99;
}

.homepage .contact .contact-form {
  flex: 1 1 100%;
  padding: 0 20px;
}

.homepage .contact .contact-form h2 {
  font-size: 24px;
  margin-bottom: 30px;
}

.homepage .contact .contact-form form {
  display: flex;
  flex-direction: column;
}

.homepage .contact .contact-form input,
.homepage .contact .contact-form textarea {
  margin-bottom: 20px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.contact-form button {
  padding: 8px 16px;
  background-color: var(--blue-color);
  color: white;
  font-weight: bold;
  cursor: pointer;
  border: none;
  border-radius: 5px;
}

.contact-form button:hover {
  background-color: var(--blue-alt-color);
}

@media (max-width: 767px) {
  .homepage .contact .row {
    flex-wrap: wrap !important;
  }

  .homepage .contact .contact-form {
    padding-left: 0;
  }

  .homepage .contact .contact-form h2 {
    margin-top: 20px;
  }
}