.menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: block;
    display:flex;
}

.menu ul li {
    position: relative;
    margin: 0 15px;
}

.menu ul li a {
    text-decoration: none;
    color: black;
    padding: 5px 10px;
    display: block;
}

.dropbtn{
    color: #777777;
    border: 1px solid #e43731;
}

.dropbtn:hover{
    color: #ffffff !important;
    background-color: #e43731;
}


.custom-menu{

    display: flex; 
    align-items: center; 
    justify-content: end; 
    margin-right: 20px; 
    min-width: 650px;
}

@media (max-width:990px){
    .custom-menu{
        min-width: 100px;
    }
}


/* Dropdown Button */
.dropdown:hover .dropbtn {
    color: #e43731;
}

/* Dropdown content (hidden by default) */
.dropdown-content {
    display: none;
    position: absolute;
    justify-items: left;
    background-color: #f9f9f9;
    width: 210px;
    height: auto;
    border-radius: 20px;
    left:0px;
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(131, 27, 27, 0.192);
    z-index: 1;
    
}

/* Links inside the dropdown */
.dropdown-content a {
    color: black;
    padding: 12px 16px;
    display: block;
    border-bottom: 3px solid rgba(255, 255, 255, 0);
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {
    background-color: #ddd;
    border-bottom: 3px solid #e43731;
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
    display: block;
}



/* offcanva */


#menu-toggle {
    display: none;
    position: absolute;
    background-color: rgba(240, 248, 255, 0);
    color: #e43731;
    border: none;
    padding: 10px 15px;
    font-size: 30px;
    font-weight: 600;
    cursor: pointer;
    z-index: 1000;
}

@media (max-width:990px){
    #menu-toggle {
        display: block;
    }

}

#menu-toggle:hover {
    font-size: 34px;
}

.offcanvas {
    position: fixed;
    top: 0;
    right: -250px; /* Initially hidden by moving it off-screen */
    width: 250px;
    height: 100%;
    background-color: #ffffffe8;
    color: #e43731;
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
    transition: right 0.5s ease; /* Smooth animation for right property */
    z-index: 9999;
    border-left: 5px solid #e43731;
}

.offcanvas.open {
    right: 0; /* Brings the off-canvas into view */
}


.offcanvas nav ul {
    list-style-type: none;
    padding: 20px;
    margin: 0;
    margin-top: 20%;
}

.offcanvas nav ul li {
    margin: 35px 0;
}

.offcanvas nav ul li a {
    color: #e43731;
    text-decoration: none;
    font-size: 18px;
    border-bottom: 3px solid rgba(255, 255, 255, 0);
}


.offcanvas nav ul li a img{
    width: 30px;
    margin-right: 15px;
}

.offcanvas .txt:hover{
    border-bottom: 3px solid #e43731;
}


#close-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: #e43731;
    font-size: 44px;
    font-weight: 800;
    cursor: pointer;
}

.content {
    padding: 20px;
    margin-top: 50px;
}


#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 9998;
}

#overlay.active {
    display: block;
}

/* vision mission */


.vnm{
    margin-top: 50px;
}

.mission , .vision{
    width: 100%;
    display:flex;
    
}

.vmdetails{
    display: flex; 
    flex-direction: column;
    justify-content: center;
    padding: 20px 0px;
}

.vmdetails .title-section{
    margin-bottom: 40px;
}

.vmdetails p{
    font-size: large;
    text-align: justify;
    margin: 0px 50px;
}

.image , .vmdetails{
    flex: 1; 
    align-items: center;
  text-align: center;
}



.image img{
    width: 100%;
}

.sal{

    color: #e43731; 
    font-size: 34px;
    
}

@media (max-width:700px){
    .mission , .vision{
        flex-direction: column;
        padding: 20px 0px;
    }

    .vision .image{
        order: 1;
    }

    .vision .vmdetails{
        order: 2;
    }

    .sal{
        font-size: 20px;
    }

    .offcanvas {
        width: 220px;
    }

    #close-btn {
        top: 20px;
        right: 0px;
    }

    #menu-toggle {
        font-size: 40px;
        padding: 0px 0px;
    }
}







/* services */

.service {
    font-family: Arial, sans-serif;
    align-items: center; /* Center vertically */
    min-height: 100vh;
    background-color: #f0f0f0;
    text-align: center; /* Optional for multi-line text centering */
    padding: 20px;
  }
  
  
  
  
  
  .card-container {
    display: grid;
    justify-content: center;
    gap: 16px;
    grid-template-columns: repeat(3, 1fr); /* Default: 3 cards in the first row */
    width: auto;
    margin: 10px;
    text-align: center;
  }
  
  .card {
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 16px;
    text-align: center;
    font-size: 18px;
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
    max-width: 400px;
  }
  
  .card h4 {
    font-size: 20px;
    color: #e43731;
    margin-bottom: 10px;
    font-weight: bold;
  }
  
  /* p Styles */
  .card p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    margin: 0;
    text-align: justify;
  }
  
  .card:hover {
    transform: translateY(-10px); /* Lift the card slightly */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Add a stronger shadow */
    border-color: #e43731; /* Optional: change border color */
  }

  .our-team {
    display: flex;
    flex-wrap: wrap; /* Ensures responsiveness */
    justify-content: center; /* Centers the items horizontally */
    align-items: stretch; /* Makes all items equal height */
    gap: 20px; /* Adds spacing between items */
    width: 100%;
    padding: 20px; /* Adds some spacing around the container */
}

.team-member {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.col-md-4 {
    max-width: 300px; /* Prevents overly large team members */
}

.member-img {
    width: 100%;
    max-width: 250px;
    height: auto;
    border-radius: 10px;
    overflow: hidden;
}

.member-img img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
}

  
  /* Responsive Styles */
  @media (max-width: 900px) {
    .card-container {
        grid-template-columns: repeat(2, 1fr); /* 2 cards per row */
    }
    .card{
      min-width: 350px
    }
  }
  
  @media (max-width: 750px) {
    .card-container {
        grid-template-columns: repeat(1, 1fr); /* 1 card per row */
    }
  }

  .flexslider .slides li video {
    width: 100%;
    height: 100%;
    min-height: 50vh;
    max-height: 75vh;
    border-radius: 5px; 
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Optional: Shadow for depth */
}

.flexslider .slides li {
    height: 100%;
    position: relative;
    text-align: center;
}


