/*

Known Template 

https://templatemo.com/tm-516-known

*/

  @import url('https://fonts.googleapis.com/css?family=Muli:300,700|Nunito');

  body {
    background: #ffffff;
    font-family: 'Nunito', sans-serif;
    overflow-x: hidden;
    padding-top: 70px;
  }


  /*---------------------------------------
     TYPOGRAPHY              
  -----------------------------------------*/

  h1,h2,h3,h4,h5,h6 {
    font-family: 'Muli', sans-serif;
    font-weight: bold;
    line-height: inherit;
  }

  h1 {
    color: #252525;
    font-size: 3em;
    line-height: normal;
  }

  h2 {
    color: #353535;
    font-size: 2em;
    padding-bottom: 10px;
  }

  h3 {
    font-size: 1.5em;
    margin-bottom: 0;
  }

  h3,
  h3 a {
    color: #454545;
  }

  p {
    color: #757575;
    font-size: 14px;
    font-weight: normal;
    line-height: 24px;
  }



  /*---------------------------------------
     GENERAL               
  -----------------------------------------*/

  html{
    -webkit-font-smoothing: antialiased;
  }

  a {
    color: #252525;
    -webkit-transition: 0.5s;
    transition: 0.5s;
    text-decoration: none !important;
  }

  a,
  input, button,
  .form-control {
    -webkit-transition: 0.5s;
    transition: 0.5s;
  }

  a:hover, a:active, a:focus {
    color: #3b8884;
    outline: none;
  }

  ::-webkit-scrollbar{
    width: 8px;
    height: 8px;
  }

  ::-webkit-scrollbar-thumb {
    cursor: pointer;
    background: #3b8884;
  }

  .section-title {
    padding-bottom: 40px;
  }

  .section-title h2 {
    margin: 0;
  }

  .section-title small {
    display: block;
  }

  .overlay {
    background: rgba(20,20,20,0.5);
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

 /* .entry-form {
    background: #3b8884;
    border-radius: 100%;
    text-align: center;
    padding: 6em;
    width: 450px;
    height: 450px;
  }

  .entry-form h2 {
    color: #ffffff;
    margin: 0;
  }*/
 
  .entry-form .form-control {
    background: transparent;
    border: 0;
    border-bottom: 1px solid;
    border-radius: 0;
    box-shadow: none;
    height: 45px;
    margin: 10px 0;
  }

  .entry-form .submit-btn {
    background: #ffffff;
    border-radius: 50px;
    border: 0;
    color: #252020;
    width: 50%;
    height: 50px;
    margin: 30px auto;
    margin-bottom: 10px;
  }

  .entry-form .submit-btn:hover {
    background: #4aeff2;
    color: #ffffff;
  }

  section {
    position: relative;
    padding: 100px 0;
  }

  #team,
  #testimonial {
    background: #f9f9f9;
  }

  #team, 
  #testimonial {
    text-align: center;
  }
  
  #google-map iframe {
    border: 0;
    width: 100%;
    height: 390px;
  }



  /*---------------------------------------
     BUTTONS               
  -----------------------------------------*/

  .section-btn {
    background: transparent;
    border-radius: 50px;
    border: 1px solid #ffffff;
    color: #ffffff;
    font-size: inherit;
    font-weight: normal;
    padding: 15px 30px;
    transition: 0.5s;
  }

  .section-btn:hover {
    background: #ffffff;
    border-color: transparent;
  }



  /*---------------------------------------
       PRE LOADER              
  -----------------------------------------*/

  .preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: center;
    background: none repeat scroll 0 0 #ffffff;
  }

  .spinner {
    border: 1px solid transparent;
    border-radius: 3px;
    position: relative;
    color: #3b8884;
  }

  .spinner:before {
    content: '';
    box-sizing: border-box;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 45px;
    height: 45px;
    margin-top: -10px;
    margin-left: -10px;
    border-radius: 50%;
    border: 1px solid #3b8884;
    border-top-color: #ffffff;
    animation: spinner .9s linear infinite;
  }

  @-webkit-keyframes spinner {
    to {transform: rotate(360deg);}
  }

  @keyframes spinner {
    to {transform: rotate(360deg);}
  }



  /*---------------------------------------
      MENU              
  -----------------------------------------*/

  .custom-navbar {
    background: #ffffff;
    border-top: 5px solid #3b8884;
    border-bottom: 0;
    -webkit-box-shadow: 0 1px 30px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0 1px 30px rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 30px rgba(0, 0, 0, 0.1);
    padding: 12px 0;
    margin-bottom: 0;
    padding: 0;
  }
  .navbar-brand {
    padding: 5px 15px; /* Adjust padding for logo */
  }

.navbar-logo {
    height:65px; /* Match your navbar height */
    width: auto; /* Maintain aspect ratio */
    display: inline-block;
    vertical-align: middle;
}

/* Optional: Add hover effect */
.navbar-brand:hover .navbar-logo {
    opacity: 0.8;
}

  .custom-navbar .navbar-brand {
    color: #454545;
    font-size: 18px;
    font-weight: bold;
    line-height: 40px;
  }

  .custom-navbar .navbar-nav.navbar-nav-first {
    margin-left: 8em;
  }

  .custom-navbar .navbar-nav.navbar-right li a {
    padding-right: 12px;
    padding-left: 12px;
  }

  .custom-navbar .navbar-nav.navbar-right li a .fa {
    background: #3b8884;
    border-radius: 100%;
    color: #ffffff;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    display: inline-block;
    margin-right: 5px;
  }

  .custom-navbar .nav li a {
    line-height: 40px;
    color: #575757;
    padding-right: 22px;
    padding-left: 22px;
  }

  .custom-navbar .navbar-nav > li > a:hover,
  .custom-navbar .navbar-nav > li > a:focus {
    background-color: transparent;
  }

  .custom-navbar .nav li a:hover {
    background-color: #3b8884;
    color: #ffffff;
  }

  .custom-navbar .nav li.active > a {
    background-color: #3b8884;
    color: #ffffff;
  }

  .custom-navbar .navbar-toggle {
    border: none;
    padding-top: 10px;
  }

  .custom-navbar .navbar-toggle {
    background-color: transparent;
  }

  .custom-navbar .navbar-toggle .icon-bar {
    background: #252525;
    border-color: transparent;
  }
  /* Ensure dropdown menu is visible on mobile */
.navbar-collapse.collapse.in {
  display: block !important;
}

/* Style the dropdown menu for mobile */
@media (max-width: 767px) {
  .navbar-nav .dropdown-menu {
      position: static;
      float: none;
      width: 100%;
      background-color: #f8f9fa; /* Light background for dropdown */
  }
  .navbar-nav .dropdown-menu li a {
      padding: 10px 15px; /* Add padding for better touch experience */
      color: #333; /* Dark text color */
  }
  .navbar-nav .dropdown-menu li a:hover {
      background-color: #e9ecef; /* Light hover background */
  }
}
@media (max-width: 767px) {
  .navbar-logo {
      height: 55px; /* Slightly smaller for mobile */
      max-width: 200px; /* Prevent logo from being too wide */
      
  }
}



  /*---------------------------------------
      HOME  & SLIDER            
  -----------------------------------------*/

  #home {
    padding: 0;
  }

  #home h1 {
    color: #ffffff;
  }

  #home h3 {
    color: #f9f9f9;
    font-size: 16px;
    font-weight: 300;
    margin: 0;
    padding: 5px 0 40px 0;
  }

  @media (max-width: 767px) {
    .home-slider .caption {
        text-align: center; /* Center align text on mobile */
        justify-content: flex-end; /* Move content to the bottom */
        padding-bottom: -50px; /* Add padding to push content up */
        background-color: rgba(20, 20, 20, 0.5); /* Darker background for better contrast */
        display: none;

    }

    .home-slider .caption h1 {
        font-size: 28px; /* Adjust font size for mobile */
        margin-bottom: 10px; /* Reduce space below h1 */
        display: none;
    }

    .home-slider .caption h3 {
        font-size: 14px; /* Adjust font size for mobile */
        padding: 5px 0 20px 0; /* Reduce padding for h3 */
        display: none;
    }

    .home-slider .item {
        height: 100%; /* Adjust height for mobile */
        
       position: center;
    }
    .section-btn{
      display: none;
    }
}

  .home-slider .caption {
    display: flex;
    justify-content: center;
    flex-direction: column;
    text-align: left;
    background-color: rgba(20,20,20,0.2);
    height: 100%;
    color: #fff;
    cursor: e-resize;
  }

  .home-slider .item {
    background-repeat: no-repeat;
    background-attachment: local;
    background-size: cover;
    height: 650px;
  }
  
  .caption h3 a { color: #FFF; }
  .caption h3 a:hover { color: #FF3; }

  .home-slider .item-first {
    background-image: url(../images/them_bg.jpeg);
	background-position: center;
  }

  .home-slider .item-second {
    background-image: url(../images/them_bg_4.JPG);
    background-position: center;
  }

  .home-slider .item-third {
    background-image: url(../images/them_bg_1.jpeg);
    background-position: center;
  }

  .home-slider .item-fourth {
    background-image: url(../images/cons_them_mockup1.jpeg);
    background-position: center;
  }
  .home-slider .item-fifth {
    background-image: url(../images/cons_them_mockup2.jpeg);
    background-position: center;
  }
 /* .home-slider .item-sixth {
    background-image: url(../images/cons_them.jpeg);
    background-position: center;
  }*/
  /* Large screen adjustments */
@media (min-width: 1920px) {
  .home-slider .item {
    min-height: 100vh; /* Optional: Set taller minimum for large screens */
    background-position: center bottom; /* Anchor to bottom */

  }
  
  /* Ensure caption fills entire height */
  .home-slider .caption {
    height: 100vh;
    min-height: 650px;
  }
}

/* 4K and ultra-wide screens */
@media (min-width: 2560px) {
  .home-slider .item {
    background-position: center bottom; /* Anchor to bottom */
  }
}




 /*---------------------------------------
      ABOUT SECTION              
  -----------------------------------------*/
#about {
  margin-bottom: 20px; /* Reduced space between About and Feature */
}

#about h2 {
  text-align: center;
  font-size: 28px;
  font-weight: bold;
  position: relative;
  display: inline-block;
  padding-bottom: 5px;
}

#about h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: #3b8884; /* Green underline */
  margin: 8px auto 0;
  border-radius: 2px;
}

/*---------------------------------------
    VALUES SECTION              
-----------------------------------------*/
.feature-thumb {
  border: 1px solid #f0f0f0;
  padding: 4em 3em; /* Slightly reduced padding */
}

.feature-thumb span {
  background: #3b8884;
  border-radius: 50px;
  color: #ffffff;
  font-size: 25px;
  font-weight: bold;
  display: inline-block;
  width: 60px;
  height: 60px;
  line-height: 60px;
  text-align: center;
  margin-bottom: 5px;
}

.feature-thumb h3 {
  margin: 10px 0;
}
.values{
color:#3b8884;
}




  /*---------------------------------------
      LOANS             
  -----------------------------------------*/

  #loans figure {
    display: inline-block;
    vertical-align: top;
    margin-left: 15px;
  }

  #loans figure span {
    float: left;
    margin-left: -15px;
    padding: 15px 20px;
    position: relative;
    top: 20px;
  }

  #loans figure span i {
    background: #3b8884;
    border-radius: 50px;
    color: #ffffff;
    font-size: 25px;
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
  }
  #loans .entry-form img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 450px;
    width: 450px;
    border-radius: 100%;
    margin-top: 100px;
    box-shadow: 0 8px 16px rgba(23, 139, 155, 0.2); /* Add a stronger shadow */
}
/* Adjust the image size for smaller screens */
@media screen and (max-width: 767px) {
    #loans .entry-form img {
    width: 70%; /* Adjust width for smaller screens */
    height: auto; /* Maintain aspect ratio */
    margin-top: 20px; /* Adjust margin for smaller screens */
    margin: 0 auto; /* Center the image horizontally */
}

  
}

/* Add these improved media queries to your existing CSS */

/* ===============================================
   IMPROVED RESPONSIVE STYLES - FORM ALIGNMENT
   =============================================== */

/* Small Mobile Phones (360x740 and similar) */
@media only screen and (max-width: 380px) {
  /* Navigation adjustments */
  .navbar-logo {
    height: 45px;
    max-width: 150px;
  }
  
  /* Hero section adjustments */
  .home-slider .item {
    height: 100vh;
    min-height: 600px;
  }
  
  .home-slider .caption {
    padding: 20px 15px;
    text-align: center;
  }
  
  .home-slider .caption h1 {
    font-size: 24px;
    margin-bottom: 15px;
  }
  
  .home-slider .caption h3 {
    font-size: 14px;
    padding: 5px 0 20px 0;
  }

  /* Loans section - circular image */
  #loans .entry-form img {
    width: 280px;
    height: 280px;
    margin-top: 30px;
    margin-bottom: 20px;
  }
  
  /* Contact form improvements */
  .contact-container {
    flex-direction: column;
    padding: 20px 15px;
    align-items: center;
    gap: 30px;
  }
  
  .contact-left {
    width: 100%;
    align-items: center;
    text-align: center;
    gap: 15px;
  }
  
  .contact-left-left h2 {
    font-size: 28px;
    margin-bottom: 10px;
  }
  
  .contact-left-left hr {
    width: 80px;
    margin: 10px auto 20px;
  }
  
  .contact-inputs {
    width: 100%;
    max-width: 320px;
    padding: 12px 20px;
    margin-bottom: 15px;
    font-size: 14px;
  }
  
  .contact-left textarea {
    width: 100%;
    max-width: 320px;
    height: 120px;
    padding: 15px 20px;
    resize: vertical;
  }
  
  .contact-left button {
    padding: 12px 25px;
    font-size: 14px;
    align-self: center;
    width: auto;
    min-width: 160px;
  }
  
  /* Hide contact image on very small screens */
  .contact-image {
    display: none;
  }
  
  /* Section padding adjustments */
  section {
    padding: 60px 0;
  }
  
  /* Feature thumbs */
  .feature-thumb {
    padding: 2em 1.5em;
    margin-bottom: 30px;
  }
  
  /* Team section */
  .team-image img {
    width: 120px;
    height: 120px;
  }
}

/* Medium Mobile Phones (375x667 and similar) */
@media only screen and (min-width: 381px) and (max-width: 420px) {
  /* Navigation */
  .navbar-logo {
    height: 50px;
    max-width: 180px;
  }
  
  /* Hero section */
  .home-slider .item {
    height: 100vh;
    min-height: 650px;
  }
  
  .home-slider .caption {
    padding: 25px 20px;
    text-align: center;
  }
  
  .home-slider .caption h1 {
    font-size: 28px;
    margin-bottom: 15px;
  }
  
  /* Loans section */
  #loans .entry-form img {
    width: 320px;
    height: 320px;
    margin-top: 40px;
  }
  
  /* Contact form improvements */
  .contact-container {
    flex-direction: column;
    padding: 30px 20px;
    align-items: center;
    gap: 40px;
  }
  
  .contact-left {
    width: 100%;
    align-items: center;
    text-align: center;
    gap: 20px;
  }
  
  .contact-left-left h2 {
    font-size: 32px;
  }
  
  .contact-inputs {
    width: 100%;
    max-width: 340px;
    padding: 14px 22px;
    margin-bottom: 18px;
  }
  
  .contact-left textarea {
    width: 100%;
    max-width: 340px;
    height: 130px;
    padding: 16px 22px;
  }
  
  .contact-left button {
    padding: 14px 28px;
    font-size: 15px;
    align-self: center;
  }
  
  /* Show simplified contact image */
  .contact-image {
    width: 200px;
    height: 150px;
    clip-path: none;
    border-radius: 15px;
  }
}

/* Large Mobile/Small Tablets (600px - 767px) */
@media only screen and (min-width: 600px) and (max-width: 767px) {
  /* Contact form for landscape mobile/small tablets */
  .contact-container {
    flex-direction: row;
    padding: 40px 30px;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
  }
  
  .contact-left {
    flex: 1;
    max-width: 350px;
    align-items: flex-start;
    text-align: left;
  }
  
  .contact-inputs {
    width: 100%;
    max-width: 350px;
    padding: 15px 25px;
  }
  
  .contact-left textarea {
    width: 100%;
    max-width: 350px;
    height: 140px;
  }
  
  .contact-image {
    width: 250px;
    height: 200px;
    clip-path: polygon(
      50% 0%,
      100% 25%,
      100% 75%,
      50% 100%,
      0% 75%,
      0% 25%
    );
    flex-shrink: 0;
  }
}

/* Tablet Portrait (768px - 991px) */
@media only screen and (min-width: 768px) and (max-width: 991px) {
  /* Contact form for tablets */
  .contact-container {
    padding: 50px 40px;
    gap: 40px;
  }
  
  .contact-left {
    max-width: 400px;
  }
  
  .contact-inputs {
    max-width: 400px;
    padding: 16px 25px;
  }
  
  .contact-left textarea {
    max-width: 400px;
  }
  
  .contact-image {
    width: 300px;
    height: 250px;
  }
}

/* Tablet Landscape (992px - 1023px) */
@media only screen and (min-width: 992px) and (max-width: 1023px) {
  .contact-container {
    padding: 60px 50px;
    gap: 50px;
  }
  
  .contact-inputs {
    max-width: 380px;
  }
  
  .contact-left textarea {
    max-width: 380px;
  }
}

/* Large Tablets/Small Desktops (1024x882 and similar) */
@media only screen and (min-width: 1024px) and (max-width: 1199px) {
  /* Adjust for 1024x882 specifically */
  .contact-container {
    padding: 60px;
    max-width: 1000px;
    margin: 0 auto;
  }
  
  .contact-left {
    max-width: 450px;
  }
  
  .contact-inputs {
    width: 100%;
    max-width: 450px;
    padding: 16px 25px;
  }
  
  .contact-left textarea {
    max-width: 450px;
  }
  
  .contact-image {
    width: 350px;
    height: 280px;
  }
  
  /* Optimize other sections for this screen size */
  .home-slider .item {
    height: 700px;
  }
  
  #loans .entry-form img {
    width: 400px;
    height: 400px;
  }
}

/* Fix for existing problematic media query */
@media (max-width: 800px) {
  .contact-inputs {
    width: 100%;
    max-width: 90vw;
  }
  
  .contact-right {
    display: none;
  }
  
  .contact-container {
    flex-direction: column;
    align-items: center;
  }
  
  .contact-left {
    width: 100%;
    align-items: center;
    text-align: center;
  }
}

/* Landscape orientation fixes for all mobile devices */
@media screen and (orientation: landscape) and (max-height: 500px) {
  .home-slider .item {
    height: 100vh;
    min-height: 450px;
  }
  
  .home-slider .caption {
    padding: 15px 20px;
  }
  
  .home-slider .caption h1 {
    font-size: 24px;
    margin-bottom: 10px;
  }
  
  .home-slider .caption h3 {
    font-size: 12px;
    padding: 5px 0 15px 0;
  }
  
  .section-btn {
    padding: 10px 20px;
    font-size: 14px;
  }
}

/* Additional form validation and focus improvements */
.contact-inputs:focus {
  border: 2px solid #3b8884;
  box-shadow: 0 0 0 3px rgba(59, 136, 132, 0.1);
  outline: none;
}

.contact-inputs:invalid {
  border-color: #e74c3c;
}

.contact-inputs:valid {
  border-color: #27ae60;
}

/* Button hover effects for touch devices */
@media (hover: hover) {
  .contact-left button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 136, 132, 0.3);
  }
}

/* Ensure proper spacing in all sections */
@media only screen and (max-width: 767px) {
  .feature-thumb {
    margin-bottom: 40px;
  }
  
  .team-thumb {
    margin-bottom: 40px;
  }
  
  .courses-thumb {
    margin-bottom: 40px;
  }
  
  /* Fix scrolling alert for small screens */
  .scrolling-alert {
    padding: 8px;
    margin-bottom: 15px;
  }
  
  .scrolling-text {
    font-size: 14px;
    animation: scroll-text 25s linear infinite;
  }
}

/* High DPI displays */
@media only screen and (-webkit-min-device-pixel-ratio: 2),
       only screen and (min-resolution: 192dpi) {
  .navbar-logo,
  .team-image img,
  #loans .entry-form img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}


#loans .entry-form img:hover {
    transform: scale(1.05); /* Slightly enlarge the image */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Add a stronger shadow */
   
}
  .scrolling-alert {
    background-color: #f6d551; /* Yellow background */
    padding: 10px;
    margin-bottom: 20px; /* Space below the alert */
    border-radius: 5px; /* Rounded corners */
    overflow: hidden; /* Hide overflow */
    white-space: nowrap; /* Prevent text wrapping */
}

.scrolling-text {
    display: inline-block;
    padding-left: 100%; /* Start off-screen */
    animation: scroll-text 30s linear infinite; /* Animation */
    font-size: 16px;
    font-weight: bold;
    color: #000; /* Black text */
}

@keyframes scroll-text {
    0% {
        transform: translateX(100%); /* Start from the right */
    }
    100% {
        transform: translateX(-100%); /* Move to the left */
    }
}

/*Media query for landscape orientation*/
/*Themba Micro Loans Logo*/
@media (orientation: landscape) and (max-width: 767px) {
    .scrolling-alert {
        padding: 5px; /* Reduce padding for smaller screens */
    }
    .scrolling-text {
        font-size: 14px; /* Adjust font size for smaller screens */
    }
    #loans .entry-form img {
        width: 35%; /* Adjust width for smaller screens */
        height: auto; /* Maintain aspect ratio */
        margin-top: 20px; /* Adjust margin for smaller screens */
        margin: 0 auto; /* Center the image horizontally */
    }
    #loans figure {
        display: block; /* Stack figures vertically */
        margin-left: 0; /* Remove left margin */
        text-align: center; /* Center align text */
    }
    #loans figure span {
        margin-left: 0; /* Remove left margin */
        padding: 10px; /* Adjust padding for smaller screens */
        top: 0; /* Reset top position */
    }
    #loans figure span i {
        width: 40px; /* Adjust icon size for smaller screens */
        height: 40px; /* Adjust icon size for smaller screens */
        line-height: 40px; /* Adjust line height for smaller screens */
    }
  }
  


  /*---------------------------------------
      TEAM              
  -----------------------------------------*/

  .team-thumb {
    background: #ffffff;
    position: relative;
    overflow: hidden;
    text-align: left;
    
  }
 

  .team-info {
    padding: 20px 30px;
  }

  .team-image img {
    width: 100%;
    height: 50%;
    border-radius: 50%;
    object-fit: cover;
    position: center;
    
  }

  .team-thumb .social-icon {
    border-top: 1px solid #f0f0f0;
    padding: 4px 20px 0 20px;
  }

  .team-thumb .social-icon li a {
    background: #ffffff;
    color: #3b8884;
  }
  .team-thumb .social-icon li a:hover {
    background: #000;
    color: #ffffff;
  }

  .team-info h3 {
    margin: 0;
  }
  #team .container {
    display: flex;
    justify-content: center; /* Centers the team members */
}
#team .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* Aligns items centrally */
  gap: 30px; /* Adds spacing between members */
}
/*media query for smaller screens*/
@media (orientation: landscape) and (max-width: 767px) {
    .team-thumb {
        width: 100%; /* Ensure full width on landscape mode */
        margin-bottom: 20px; /* Add space between team members */
    }
    .team-info {
        text-align: center; /* Center text on landscape mode */
    }
    .team-image img {
        width: 40%; /* Adjust image size for landscape mode */
        height: auto; /* Maintain aspect ratio */
        align-items: center; /* Center the image */
        margin: 0 auto; /* Center the image horizontally */

    }
    .social-icon {
        text-align: center; /* Center social icons */
    }
  .team-thumb .social-icon li {
        display: inline-block; /* Display social icons inline */
        margin: 0 5px; /* Add spacing between icons */
    }
  .team-thumb .social-icon li a {
        padding: 10px; /* Adjust padding for smaller screens */
        font-size: 18px; /* Adjust icon size for smaller screens */
    }

  }
 


  /*---------------------------------------
      SERVICES             
  -----------------------------------------*/

  #courses .section-title {
    text-align: center;
  }

  #courses .owl-theme .owl-nav {
    margin-top: 30px;
  }

  #courses .owl-theme .owl-nav [class*=owl-] {
    border-radius: 2px;
    font-size: 16px;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    padding: 0;
  }

  .courses-thumb {
    background: #f9f9f9;
    position: relative;
  }

  .courses-top {
    position: relative;
  }

  .courses-image {
    background: linear-gradient(to right, #202020, #101010);
  }

  .courses-date {
    background: linear-gradient(rgba(255, 0, 0, 0), rgba(0, 0, 0, 0.6));
    width: 100%;
    position: absolute;
    bottom: 0;
    padding: 20px 25px;
  }

  .courses-date span,
  .courses-author span {
    font-size: 14px;
    font-weight: bold;
  }

  .courses-date span {
    color: #ffffff;
    display: inline-block;
    margin-right: 10px;
  }

  .courses-detail {
    padding: 25px 25px 15px 25px;
  }

  .courses-detail h3 {
    margin: 0 0 2px 0;
  }

  .courses-info {
    border-top: 1px solid #f0f0f0;
    position: relative;
    clear: both;
    padding: 15px 25px;
  }

  .courses-author,
  .courses-author span {
    display: inline-block;
    vertical-align: middle;
  }

  .courses-author img {
    display: inline-block !important;
    border-radius: 50px;
    width: 50px !important;
    height: 50px;
    margin-right: 10px;
  }

  .courses-price {
    float: right;
    margin-top: 10px;
  }

  .courses-price span {
    background: #3b8884;
    border-radius: 2px;
    color: #ffffff;
    display: block;
    padding: 5px 10px;
  }

  .courses-price.free span {
    background: #3b8884;
  }
  /*Media queries: Services*/
@media (orientation: landscape) and (max-width: 767px) {
    #courses .owl-carousel .item {
        width: 70%;
        margin-bottom: 20px; /* Add space between courses */
        margin: 0 auto; /* Center the courses */
    }
    .courses-thumb {
        padding: 20px; /* Adjust padding for smaller screens */
    }
    .courses-image img {
        width: 70%; /* Adjust image size for smaller screens */
        height: auto; /* Maintain aspect ratio */
    }
    .courses-detail h3 {
        font-size: 18px; /* Adjust heading size for smaller screens */
    }
    .courses-info {
        text-align: center; /* Center align text on smaller screens */
    }
    .courses-author img {
        width: 40px; /* Adjust author image size for smaller screens */
        height: 40px; /* Adjust author image size for smaller screens */
    }
    .courses-author span {
        font-size: 14px; /* Adjust author name size for smaller screens */
    }
    .courses-price {
        text-align: center; /* Center align price on smaller screens */
        margin-top: 10px; /* Adjust margin for smaller screens */
    }
  .courses-price span {
        font-size: 14px; /* Adjust price size for smaller screens */
        padding: 5px 10px; /* Adjust padding for smaller screens */
    }
  .courses-price.free span {
        background: #3b8884; /* Ensure free courses have the same background */
    }
}




  /*---------------------------------------
     NEWS              
  -----------------------------------------*/

  .news-thumb {
    clear: both;
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
  }

  .news-thumb .news-image {
    float: left;
    width: 40%;
    margin-right: 30px;
  }

  .news-info h3 {
    margin-top: 5px;
    margin-bottom: 10px;
  }

  .news-date span {
    color: #909090;
    font-weight: bold;
  }



  /*---------------------------------------
      TESTIMONIAL             
  -----------------------------------------*/

  #testimonial .item {
    background: #ffffff;
    margin: 20px 0;
    padding: 4em 3em;
    text-align: left;
  }

  #courses .col-md-4,
  #testimonial .col-md-4 {
    display: block;
    width: 100%;
  }

  #testimonial .item > p {
    font-size: 16px;
    line-height: 26px;
  }

  .tst-rating {
    margin-bottom: 15px;
  }

  .tst-rating .fa {
    color: #3f51b5;
  }

  .tst-image,
  .tst-author {
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 20px;
    text-align: left;
  }

  .tst-image img {
    border-radius: 50px;
    width: 60px !important;
    height: 60px;
    margin-right: 15px;
  }

  .tst-author h4 {
    margin: 0;
  }

  .tst-author span {
    color: #808080;
    font-size: 14px;
  }
  

  /*---------------------------------------
      CONTACT             
  -----------------------------------------*/

  #contact {
    background: #3b8884;
  }

  #contact h2 {
    color: #ffffff;
  }

  #contact .section-title {
    padding-bottom: 20px;
  }

  #contact h2 > small,
  #contact p,
  #contact a {
    color: #f9f9f9;
  }

  #contact-form {
    padding: 1em 0;
  }

  #contact-form .col-md-12,
  #contact-form .col-md-4 {
    padding-left: 0;
  }

  #contact-form .form-control {
    border: 0;
    border-radius: 5px;
    box-shadow: none;
    margin: 10px 0;
  }

  #contact-form input {
    height: 50px;
  }

  #contact-form input[type='submit'] {
    border-radius: 50px;
    border: 1px solid transparent;
  }

  #contact-form input[type='submit']:hover {
    background: transparent;
    border-color: #ffffff;
    color: #ffffff;
  }
  .contact-image{
    width: 350px;
    height: 300px;
    border-radius: 10px;
    position: relative;
    .contact-image::after{
      content: "";
      position: absolute;
      left: 20px;
      bottom: -20px;
      width: 0;
      height: 0;
      border-left:10px solid transparent;
      border-right:10px solid transparent;
      border-top: 20px solid #3e6c69;
    }
  }
  .contact-image {
    
    clip-path: polygon(
      50% 0%,    /* Top center */
      100% 25%,  /* Top right */
      100% 75%,  /* Bottom right */
      50% 100%,  /* Bottom center */
      0% 75%,    /* Bottom left */
      0% 25%     /* Top left */);
    
    object-fit:cover;
    
  }
  .contact-image img:hover {
    transform: scale(1.5); /* Slightly enlarge the image */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Add a stronger shadow */
   
}
  .contact-container{
    padding: 0 15px; 
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
  }
  /* Add padding to the contact form container */


/* Add padding to the input fields */
.contact-inputs {
  width: 350px; /* Ensure inputs take full width */
  padding: 10px; /* Add padding inside the input fields */
  margin-bottom: 15px; /* Add space between input fields */
  box-sizing: border-box; /* Ensure padding is included in the width */
  /*height: 50px;*/
  border: none;
  outline: none;
  font-weight: 500;
  color: #666;
  border-radius: 50px;
}
  .contact-left{
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 20px;
  }
  .contact-left-left h2{
    font-weight: 600;
    color: #3e6c69;
    font-size: 40px;
    margin-bottom:5px;
  }
  .contact-left-left hr{
    border: none;
    width: 120px;
    height: 5px;
    background-color: #3e6c69;
    border-radius: 10px;
    margin-bottom: 20px;
  }
  /*.contact-inputs{
    width: 400px;
    height: 50px;
    border: none;
    outline: none;
    padding-left: 25px;
    font-weight: 500;
    color: #666;
    border-radius: 50px;
  }*/
  .contact-left textarea{
    height: 140px;
    padding-top: 15px;
    border-radius: 20px;
  }
  .contact-inputs:focus{
    border: 2px solid #3b8884;
    

  }
  .contact-inputs::placeholder{
    color: #a9a9a9;

  }
  .contact-left button{
    display: flex;
    align-items: center;
    padding: 15px 30px;
    font-size: 16px;
    color: #fff;
    gap: 10px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(270deg, #3b8884 0%, #3e6c69 100%);
    cursor: pointer;

  }
 
  

  /*---------------------------------------
     FOOTER              
  -----------------------------------------*/

  .footers {
    background: #252020;
    padding: 120px 0;
  }


  footer .section-title {
    padding-bottom: 10px;
  }

  footer h2 {
    font-size: 20px;
  }

  footer a,
  footer p {
    color: #909090;
  }

  footer strong {
    color: #d9d9d9;
  }

  footer address p {
    margin-bottom: 0;
  }

  footer .social-icon {
    margin-top: 25px;
  }

  .footer-info {
    margin-right: 2em;
  }

  .footer-info h2 {
    color: #ffffff;
    padding: 0;
  }

  .footer_menu h2 {
    margin-top: 2em;
  }

  .footer_menu ul {
    margin: 0;
    padding: 0;
  }

  .footer_menu li {
    display: inline-block;
    list-style: none;
    margin: 5px 10px 5px 0;
  }

  .newsletter-form .form-control {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    border: 0;
    border-bottom: 1px solid #303030;
    height: 50px;
    margin: 5px 0;
  }

  .newsletter-form input[type="submit"] {
    background: transparent;
    border: 1px solid #f9f9f9;
    border-radius: 50px;
    color: #ffffff;
    display: block;
    margin-top: 20px;
    outline: none;
    width: 50%;
  }

  .newsletter-form input[type="submit"]:hover {
    background: #3b8884;
    border-color: transparent;
  }

  .newsletter-form .form-group span {
    color: #909090;
    display: block;
    font-size: 12px;
    margin-top: 20px;
  }



  /*---------------------------------------
     SOCIAL ICON              
  -----------------------------------------*/

  .social-icon {
    position: relative;
    padding: 0;
    margin: 0;
  }

  .social-icon li {
    display: inline-block;
    list-style: none;
    margin-bottom: 5px;
  }

  .social-icon li a {
    border-radius: 100px;
    color: #3b8884;
    font-size: 15px;
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-decoration: none;
    text-align: center;
    transition: all 0.4s ease-in-out;
    position: relative;
    margin: 5px 5px 5px 0;
  }

  .social-icon li a:hover {
    background: #29ca8e;
    color: #ffffff;
  }



  /*---------------------------------------
     RESPONSIVE STYLES              
  -----------------------------------------*/

  @media screen and (max-width: 1170px) {
    .custom-navbar .navbar-nav.navbar-nav-first {
      margin-left: inherit;
    }
  }

  @media only screen and (max-width: 992px) {
    section,
    footer {
      padding: 60px 0;
    }

    .home-slider .item {
      background-position: center center;
    }

    .feature-thumb,
    .about-info,
    .team-thumb,
    .footer-info {
      margin-bottom: 50px;
    }

    .contact-image {
      margin-top: 50px;
    }
  }


  @media only screen and (min-width: 768px) and (max-width: 991px) {
    .custom-navbar .nav li a {
      padding-right: 10px;
      padding-left: 10px;
    }
  }

  @media only screen and (max-width: 767px) {
    h1 {
      font-size: 2.5em;
    }

    h1,h2,h3 {
      line-height: normal;
    }

    .custom-navbar {
      background: #ffffff;
      -webkit-box-shadow: 0 1px 30px rgba(0, 0, 0, 0.1);
      -moz-box-shadow: 0 1px 30px rgba(0, 0, 0, 0.1);
      box-shadow: 0 1px 30px rgba(0, 0, 0, 0.1);
      padding: 10px 0;
      text-align: center;
    }

    .custom-navbar .navbar-brand,
    .custom-navbar .nav li a {
      line-height: normal;
    }

    .custom-navbar .nav li a {
      padding: 10px;
    }

    .custom-navbar .navbar-brand,
    .top-nav-collapse .navbar-brand {
      color: #252525;
      font-weight: 600;
    }

    .custom-navbar .nav li a,
    .top-nav-collapse .nav li a {
      color: #575757;
    }

    .custom-navbar .navbar-nav.navbar-right li {
      display: inline-block;
    }

    .footer-info {
      margin-right: 0;
    }

    .footer-info.newsletter-form {
      margin-bottom: 0;
    }

    .entry-form {
      display: block;
      margin: 0 auto;
    }
  }


  @media only screen and (max-width: 580px) {
    h2 {
      font-size: 1.8em;
    }

    #testimonial .item {
      padding: 2em;
    }

    .contact-image {
      margin-top: 0;
    }
  }

  @media only screen and (max-width: 480px) {
    h1 {
      font-size: 2em;
    }

    #home h3 {
      font-size: 14px;
    }

    .entry-form {
      border-radius: 0;
      padding: 2em;
      max-width: 100%;
      max-height: 100%;
      width: inherit;
      height: inherit;
    }
  }
  @media(max-width:800){
   
    .contact-inputs{
      width: 80vw;
    }
    
    .contact-right{
      display: none;
    }
    .contact-image {
    
    clip-path: polygon(
      50% 0%,    /* Top center */
      100% 25%,  /* Top right */
      100% 75%,  /* Bottom right */
      50% 100%,  /* Bottom center */
      0% 75%,    /* Bottom left */
      0% 25%     /* Top left */);
    
    object-fit:cover;
    
  }
  }
 