/********** Template CSS **********/
:root {
  --primary: #99cc53;
  --secondary: #1c6434;
  --light: #ffffff;
  --dark: #152440;
}

h1 {
  font-size: 20px;
}

h1,
h2,
.font-weight-bold {
  font-weight: 700 !important;
}

h3,
h4,
.font-weight-semi-bold {
  font-weight: 600 !important;
}

h5,
h6,
.font-weight-medium {
  font-weight: 500 !important;
}

.p-2 {
  padding: 30px;
}

.pt-6 {
  padding-top: 90px;
}

.pb-6 {
  padding-bottom: 90px;
}

.py-6 {
  padding-top: 90px;
  padding-bottom: 90px;
}

.py-4 {
  padding-top: 60px;
  padding-bottom: 60px;
}

.top-logo {
  width: 150px;
  height: auto;
}
/* button style */
.btn {
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-lg {
  text-transform: uppercase;
}

.btn-outline-primary {
  color: #99cc53;
  border: 2px solid #99cc53;
}

.btn-outline-primary:hover {
  background-color: #99cc53;
  color: #fff;
}

.btn-primary {
  background-color: #99cc53;
  border-color: #1c6434;
}

.btn-primary:hover {
  background-color: #99cc53;
  border-color: #1c6434;
}

.btn i {
  margin-right: 8px;
}


/* card image */
.img-same-height {
  height: 300px;      
  object-fit: cover;  
  width: auto;        
}
.event-img {
  width: 100%;            
  height: 300px;         
  object-fit: cover;         
}

/* for smaller screen header  */
@media (max-width: 768px) {
  #header-carousel .carousel-item img {
    height: 500px;
    object-fit: cover;
  }

  .carousel-caption {
    padding: 5px;
    max-width: auto;
    text-align: center;
  }

  .carousel-caption .btn {
    font-size: 0.8rem;
    padding: 8px 15px;
    margin: 5px;
  }
}

@media (max-width: 576px) {
  .top-logo {
    width: 30%;
  }
}

.text-shadow {
  text-shadow: 2px 2px 5px #525252;
}

.btn {
  font-family: "Barlow", sans-serif;
  font-weight: 600;
  transition: 0.5s;
}

.btn-primary {
  color: #ffffff;
  background: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover,
.btn-secondary:hover {
  color: #ffffff;
  background: var(--secondary);
  border-color: var(--secondary);
}

.btn-square {
  width: 36px;
  height: 36px;
}

.btn-sm-square {
  width: 28px;
  height: 28px;
}

.btn-lg-square {
  width: 46px;
  height: 46px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
  padding-left: 0;
  padding-right: 0;
  text-align: center;
}

.dropdown-pdf {
  display: none;
  position: absolute;
  background-color: white;
  border-radius: 5px;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.back-to-top {
  position: fixed;
  display: none;
  right: 45px;
  bottom: 45px;
  z-index: 99;
}

.top-shape::before {
  position: absolute;
  content: "";
  width: 35px;
  height: 100%;
  top: 0;
  left: -17px;
  background: var(--primary);
  transform: skew(40deg);
}

/* navbar */
.navbar .dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar .dropdown-menu img {
  width: 20px;
  height: auto;
}

.navbar-light .navbar-nav .nav-link {
  font-family: "Barlow", sans-serif;
  padding: 35px 15px;
  font-size: 18px;
  text-transform: uppercase;
  color: var(--dark);
  outline: none;
  transition: 0.5s;
}

.sticky-top.navbar-light .navbar-nav .nav-link {
  padding: 20px 15px;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
  color: var(--primary);
}

@media (max-width: 991.98px) {
  .navbar-light .navbar-nav .nav-link {
    padding: 10px 0;
  }
}

.carousel-caption {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
  width: 10%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 3rem;
  height: 3rem;
}

.service-item {
  position: relative;
  overflow: hidden;
  height: 350px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}

.service-item::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 50px;
  bottom: -50px;
  left: 0;
  background: var(--light);
  border-radius: 100% 100% 0 0;
  box-shadow: 0px -10px 5px #eeeeee;
  transition: 0.5s;
}

.service-item:hover::after {
  bottom: -25px;
}

.service-item p {
  transition: 0.3s;
}

.service-item:hover p {
  margin-bottom: 25px !important;
}

.team-item img {
  transform: scale(1.15);
  margin-left: -30px;
  transition: 0.5s;
}

.team-item:hover img {
  margin-left: 0;
}

.team-item .team-text {
  left: -100%;
  transition: 0.5s;
}

.team-item .team-text::after {
  position: absolute;
  content: "";
  width: 0;
  height: 0;
  top: 50%;
  right: -60px;
  margin-top: -30px;
  border: 30px solid;
  border-color: transparent transparent transparent var(--primary);
}

.team-item:hover .team-text {
  left: 0;
}

.testimonial-carousel .owl-nav {
  margin-top: 30px;
  display: flex;
  justify-content: start;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
  position: relative;
  margin: 0 5px;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: var(--primary);
  font-size: 22px;
  border-radius: 45px;
  transition: 0.5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
  color: var(--dark);
}

.testimonial-carousel .owl-item img {
  width: 90px;
  height: 90px;
}

.blog-item img {
  transition: 0.5s;
}

.blog-item:hover img {
  transform: scale(1.1);
}

.primary {
  background-color: #99cc53;
}

.secondary {
  background-color: #1c6434;
}

.about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .table {
    font-size: 0.874rem;
  }

  .about-img {
    width: 100%;
    height: 60vh;
    object-position: bottom;
  }
}

.align-items-right {
  display: flex;
  align-items: flex-end;
  text-align: right;
  vertical-align: top;
}

.align-items-right-center {
  display: flex;
  justify-content: flex-end;
  text-align: right;
  align-items: flex-end;
}

.text-justify {
  text-align: justify;
}

.text-right {
  text-align: right;
}

.uppercase {
  text-transform: uppercase;
}

.italic {
  font-style: italic;
}

/* footer  */

.container-fluid {
  flex-grow: 1;
}

.text-white {
  color: #fff;
}

.underline {
  text-decoration: underline;
}

.takaful-ikhlas {
  display: flex;
  justify-content: flex-end;
}

.takaful-ikhlas img {
  height: 90px;
  max-width: 90px;
}

.our-service-banner {
  width: 100%;
  object-fit: cover;
}

#our-service-banner-id {
  height: 80vh;
}

.ul-your-coverage-plan {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ul-your-coverage-plan i {
  margin-right: 8px;
}

.footer {
  background-color: #1c6434;
  color: #fff;
  bottom: 0;
  width: 100%;
  z-index: 10;
  font-size: 0.8rem;
  padding: 20px 30px 20px 30px;
}

.container-fluid.secondary {
  background-color: var(
    --secondary
  ); /* Ensure footer has a consistent background */
  color: var(--light); /* Ensure text color contrasts with the background */
  padding: 20px 15px; /* Reduce padding */
  font-size: 0.9rem; /* Adjust font size for smaller text */
}

/* Sticky Footer: Ensures the footer stays at the bottom */
html,
body {
  height: 100%; /* Ensure the height of the HTML and body covers the viewport */
  margin: 0;
}

body {
  display: flex;
  flex-direction: column; /* Use column layout for body */
}

.container-fluid.secondary {
  margin-top: auto; /* Push the footer to the bottom */
  text-align: left; /* Align footer content to the left */
}

/* Footer Responsiveness for Smaller Screens */
@media (max-width: 768px) {
  .container-fluid.secondary {
    padding: 15px 10px; /* Reduce padding for smaller screens */
    font-size: 0.8rem; /* Smaller font size */
  }

  .container-fluid.secondary h3 {
    font-size: 1rem; /* Reduce heading size in footer */
  }

  .footer {
    text-align: center;
  }
}
