* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
}

:root {
    --primary: #1E60AA;
    --secondary: #FF4917;
    --light: #EDF1FC;
    --dark: #17224D;
}

.fw-medium {
    font-weight: 600 !important;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

/*** Navbar ***/
.top-bar {
    height: 75px;
    padding: 0 4rem;
}

.nav-bar {
    position: relative;
    padding: 0 4.75rem;
    transition: .5s;
    z-index: 9999;
    border-bottom: solid black;
}

.nav-bar.sticky-top {
    position: sticky;
    padding: 0;
    z-index: 9999;
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar-light .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    color: var(--dark);
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    outline: none;
    position: relative;
    transition: color 0.3s ease;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
}

/* New styles for hover effect */
.navbar-light .navbar-nav .nav-link::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary); /* Color of the underline on hover */
    visibility: hidden;
    transform: scaleX(0);
    transition: all 0.3s ease-in-out 0s;
}

.navbar-light .navbar-nav .nav-link:hover::before {
    visibility: visible;
    transform: scaleX(1);
}

@media (max-width: 991.98px) {
    .nav-bar {
        padding: 0;
    }

    .navbar-light .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar-light .navbar-nav {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid #EEEEEE;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}



/*** Header ***/
.hero {
  position: relative;
  background-image: url('bg.jpg');
  object-fit: cover;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #fff;
  text-align: center;
  padding: 100px 0;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: -1;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 40px;
}

.hero a.btn {
  font-size: 1.2rem;
  padding: 15px 30px;
  border: solid #f00;
  border-radius: 50px;
  background-color: #f00;
  color: #fff;
}

.hero a.btn:hover {
  border: solid #f00;
  background-color: transparent;
}


/* Style the 'services' section */
#services {
    background-color: #f8f8f8;
    padding: 50px 0;
}

/* Center the section heading and separator line */
#services .text-center {
    margin-bottom: 40px;
}

#services h1 {
    font-size: 36px;
    font-weight: bold;
}

#services .text-primary {
    color: #007bff;
}

#services hr {
    border: 2px solid #007bff;
    width: 25%;
}

/* Style the service cards */
#services .card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    overflow: hidden;
}

#services .card:hover {
    transform: scale(1.05);
}

#services .card:hover .card-overlay {
    opacity: 1;
    visibility: visible;
}

#services .card-body {
    padding: 20px;
}

#services .card-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

#services .card-text {
    font-size: 16px;
    line-height: 1.6;
}

#services .card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 123, 255, 0.8);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

#services .card-overlay:hover {
    opacity: 1;
    visibility: visible;
}

#services .card-overlay h3 {
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

#services .card-overlay p {
    color: #fff;
    font-size: 16px;
    line-height: 1.6;
}

.sanyal {
  position: relative;
  background-image: url('bg.jpeg');
  object-fit: cover;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #fff;
  text-align: center;
  padding: 100px 0;
}

.sanyal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: -1;
}

.nagrota {
  position: relative;
  background-image: url('bg2.jpg');
  object-fit: cover;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #fff;
  text-align: center;
  padding: 100px 0;
}

.ponahari::before {
  content: ''; /* Add this line */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-color: rgba(0, 0, 0, 0.6);
}

.ponahari {
  position: relative;
  background-image: url('bg3.jpg');
  object-fit: cover;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #ffffff;
  text-align: center;
  padding: 100px 0;
}

.babaji {
  position: relative;
  background-image: url('about-img.png');
  object-fit: cover;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #fff;
  text-align: center;
  padding: 100px 0;
}

.babaji::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: -1;
}



.ponahari::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: -1;
}

.team-item img {
    transition: .5s;
}

.team-item:hover img {
    transform: scale(1.1);
}

.team-item .team-text {
    height: 90px;
    overflow: hidden;
}

.team-item .team-text .bg-light,
.team-item .team-text .bg-primary {
    position: relative;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: .5s;
    text-align: center;
}

.team-item .team-text .bg-primary {
    flex-direction: row;
}

.team-item:hover .team-text .bg-light {
    margin-top: -90px;
}

.team-item .team-text .bg-primary .btn {
    color: var(--primary);
    background: #FFFFFF;
}

.team-item .team-text .bg-primary .btn:hover {
    color: #FFFFFF;
    background: var(--secondary)
}

.social-icons {
    margin-top: 20px;
}

.social-icon {
    display: inline-block;
    background-color: #F0F8F8;
    color: #333;
    font-size: 25px;
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    border-radius: 30%;
    margin: 0 08px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.8);
}

.social-icon[data-hover-color="#1877f2"]:hover {
    color: #1877f2;
}

.social-icon[data-hover-color="#c32aa3"]:hover {
    color: #c32aa3;
}

.social-icon[data-hover-color="#1da1f2"]:hover {
    color: #1da1f2;
}

.social-icon[data-hover-color="#ff0000"]:hover {
    color: #ff0000;
}

.social-icon:hover {
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2), 0 4px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(4px);
}

.wrapper {
  display: inline-flex;
  list-style: none;
}

.wrapper .icon {
  color: #000000;
  position: relative;
  background: #F0F8F8;
  border-radius: 50%;
  padding: 15px;
  margin: 10px;
  width: 50px;
  height: 50px;
  font-size: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.wrapper .tooltip {
  position: absolute;
  top: 0;
  font-size: 14px;
  background: #ffffff;
  color: #ffffff;
  padding: 5px 8px;
  border-radius: 5px;
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.wrapper .tooltip::before {
  position: absolute;
  content: "";
  height: 8px;
  width: 8px;
  background: #ffffff;
  bottom: -3px;
  left: 50%;
  transform: translate(-50%) rotate(45deg);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.wrapper .icon:hover .tooltip {
  top: -45px;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.wrapper .icon:hover span,
.wrapper .icon:hover .tooltip {
  text-shadow: 0px -1px 0px rgba(0, 0, 0, 0.1);
}

.wrapper .facebook:hover,
.wrapper .facebook:hover .tooltip,
.wrapper .facebook:hover .tooltip::before {
  background: #1877f2;
  color: #ffffff;
}

.wrapper .twitter:hover,
.wrapper .twitter:hover .tooltip,
.wrapper .twitter:hover .tooltip::before {
  background: #222222;
  color: #ffffff;
}

.wrapper .instagram:hover,
.wrapper .instagram:hover .tooltip,
.wrapper .instagram:hover .tooltip::before {
  background: #e4405f;
  color: #ffffff;
}

.wrapper .linkedin:hover,
.wrapper .linkedin:hover .tooltip,
.wrapper .linkedin:hover .tooltip::before {
  background: #0a66c2;
  color: #ffffff;
}

.wrapper .youtube:hover,
.wrapper .youtube:hover .tooltip,
.wrapper .youtube:hover .tooltip::before {
  background: #cd201f;
  color: #ffffff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

#cv h2 {
  font-size: 2.5em;
}

#cv h5 {
  font-size: 1.2em;
}

.img-fluid {
  width: 100%;
  max-width: 200px;
  height: auto;
}

.contact-info {
  list-style: none;
  padding: 0;
}

.contact-info li {
  margin-bottom: 10px;
}

.col-lg-4 h5,
.col-lg-7 h3 {
  margin-top: 20px;
}

hr {
  border-top: 2px solid #333;
}

ul, dl {
  list-style: none;
  padding: 0;
  margin-top: 10px;
}

dl dt {
  font-weight: bold;
  margin-top: 10px;
}

#contact {
  background-color: #fff;
  padding: 60px 10px;
}

#contact h2 {
  color: #333; /* Change text color for better contrast */
  font-size: 2rem;
  margin-bottom: 15px;
}

#contact h5 {
  color: #333; /* Change text color for better contrast */
  font-size: 1rem;
}

@media (min-width: 768px) {
  #contact {
    padding: 60px 0;
  }

  #contact h2 {
    font-size: 2.5rem;
  }

  #contact h5 {
    font-size: 1.2rem;
  }

  #contact .form-control {
    width: 100%;
  }
}

#contact .form-group {
  position: relative;
}

#contact .form-control {
  border-radius: 0;
  border: none;
  border-bottom: 2px solid #333;
  background-color: transparent;
  color: #333;
  width: 100%;
  transition: border-color 0.3s;
}

#contact .form-control:focus {
  border-color: #007bff;
  outline: none;
}

#contact .floating-label {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  transition: transform 0.3s, color 0.3s;
}

#contact .form-control:focus ~ .floating-label,
#contact .form-control:not(:placeholder-shown) ~ .floating-label {
  transform: translateY(-100%) translateX(-10px) scale(0.8);
  color: #007bff;
}

#contact button.btn-outline-light {
  background-color: transparent;
  border-color: #f00;
  color: #333;
  font-weight: bold;
  padding: 10px 25px;
  transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}

#contact button.btn-outline-light:hover {
  background-color: #EDEDEC;
  color: #333;
  border-color: #ccc; /* Change border color on hover for better visibility */
}




footer.bg-dark.text-light.py-4 {
    background-color: #343a40;
}

.container {
    max-width: 1200px;
}

.row {
    margin: 0 -15px;
}

.col-md-4 {
    padding: 0 15px;
}

.col-md-4 img {
    width: 90px;
    height: auto;
    border-radius: 50px;
}

@media (max-width: 768px) {
    .col-md-4 img {
        padding-bottom: 10px;
    }
}

h4 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

ul.list-unstyled {
    padding: 0;
    list-style: none;
}

ul.list-unstyled li {
    margin-bottom: 0.5rem;
}

hr.mt-3 {
    margin-top: 1.5rem;
}

.text-center {
    text-align: center;
}

p {
    margin-bottom: 0.5rem;
}

.col-md-4 {}

.list-unstyled {
    list-style: none;
    padding: 0;
}

.list-unstyled li {
    padding: 5px; /* Adjust this value as needed for spacing */
}

.list-unstyled li a {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: color 0.3s ease; /* Simplified transition property */
}

.list-unstyled li:nth-child(1) a:hover {
    color: #1877f2;
}

.list-unstyled li:nth-child(2) a:hover {
    color: #c32aa3;
}

.list-unstyled li:nth-child(3) a:hover {
    color: #1da1f2;
}

.list-unstyled li:nth-child(4) a:hover {
    color: #ff0000;
}

/* Consolidated hover style for all links */
.list-unstyled li a:hover {
    /* background-color: #dddddd; */
}


.col-md-4 p i{
    color: #fff;
}

.col-md-4 p i:hover{
    color: blue;
}

/* Responsive design */
@media (max-width: 768px) {
    #services .col-lg-4 {
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .header-carousel .owl-carousel-item {
        position: relative;
        min-height: 500px;
    }
}
