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

/* Header Styling */
.header {
    width: 100%;
    height: 40vh;
    background-image: 
    linear-gradient(rgba(50, 167, 190, 0.95), rgba(50, 167, 190, 0.95)),
    url(../images/banner.png);
    background-position: center;
    background-size: cover;
    background-blend-mode: multiply;
    overflow: hidden;
    position: relative;
    margin-bottom: 100px;
    
}





/* Adjust header background and gradient on mobile */
@media (max-width: 500px) {
    .header {
        height: 400px; 
        background-position: center;
        background-size: cover; 
    }
}

@media (max-width: 500px) {
    .header {
        height: 300px; 
        background-size: cover; 
        background-position: center; 
    }
}

/* Header Section Styling */
.header-section {
    width: 100%;
    height: 40vh; 
    display: flex;
    justify-content: center; 
    align-items: center; 
    text-align: center;
    position: relative;
    color: white;
    background-image: 
    linear-gradient(rgba(50, 167, 190, 0.95), rgba(50, 167, 190, 0.95)),;
    background-size : cover;
    background-position: center;
    background-attachment: fixed;
    
}

/* Center the text and make the div responsive */
.center-div {
    width: 100%;
    max-width: 900px; /* Set max-width for larger screens */
    padding: 20px;
    margin: 0 auto;
    text-align: center;
    display: flex;
}

h1 {
    font-size: 48px;
    font-family: Helvetica, Arial, sans-serif;
    line-height: 1.2;
    font-weight: bolder !important;
    margin: 0 auto;
    word-wrap: break-word; /* Ensures long text wraps */
    animation: fadeInUp 1s ease-out forwards; /* Animation applied here */
}
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(40px); /* Starts below */
    }
    100% {
        opacity: 1;
        transform: translateY(0); /* Ends in the normal position */
    }
}



/* Mobile Responsive Adjustments */
@media (max-width: 500px) {
    .header-section {
        height: auto;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .center-div {
        width: 100%; /* Full width for mobile */
        max-width: none;
        padding: 20px;
    }

    h1 {
        font-size: 16px; /* Smaller font size on mobile */
    }
}

@media (max-width: 500px) {
    h1 {
        font-size: px; /* Further reduction for smaller devices */
    }
}


    




/* Navbar Image Size Adjustments */
.navbar-brand img {
    height: 50px;
    width: auto;
    margin-right: 50px;
}

/* Adjust Navbar Image on Smaller Screens */
@media (max-width: 992px) {
    .navbar-brand img {
        height: 40px;
    }
}

@media (max-width: 500px) {
    .navbar-brand img {
        height: 40px;
    }
}

.navbar-nav .nav-item {
    margin-right: 20px;
}

.navbar-nav .nav-item:last-child {
    margin-right: 0; /* Remove the margin from the last item */
}

.navbar-nav .nav-item .btn {
    background-color:#0D9920; /* Normal state background */
    border: none;
    transition: background-color 0.3s ease, transform 0.3s ease;

}

.navbar-nav .nav-item .btn:hover {
    background-color:#3DD952; /* Hover state background */
    border: none;
    transform: scale(1.05); /* Slightly grow on hover */

}







        /* Footer Styles */
        .footer {
            background-color: #f1f1f1;
            color: #000;
            padding: 20px 0;
        }
        
        .footer-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid #ccc;
            padding-bottom: 10px;
            margin-bottom: 10px;
        }
        
        .footer-bottom {
            text-align: center;
            padding-top: 10px;
            font-size: 14px;
            color: #000;
            margin-top: 10px;  /* Add some space above */
        }
        




/* Back to Top Button Styles */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: none;
    background-color: #3DD952;
    color: #fff;
    padding: 10px 15px;
    border-radius: 50%;
    text-align: center;
    font-size: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 1000;
    transition: opacity 0.1s ease;
    animation: pulse 2s infinite;
}

.back-to-top:hover {
    background-color: #3DD952;
    color: #fff;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(61, 217, 82, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(0, 0, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    }
}






.header-welcome .row .col-md-6 h2 {
    margin-bottom: 1rem;  /* Space below heading */
}

.header-welcome .row .col-md-6 ul {
    margin-top: 0;       /* Remove extra space above list */
    padding-left: 1.2rem; /* Indent bullets slightly */
}



.image-cropper {
    height: 320px;      /* fixed height */
    overflow: hidden;   /* hide overflow, crop image */
    width: 100%;        /* full width of column */
    position: relative; /* needed for object-fit */
    margin-bottom: 100px;
  }
  
  .cropped-image {
    height: 100%;       /* image fills container height */
    width: 100%;        /* image fills container width */
    object-fit: cover;  /* crop image to cover container */
    object-position: center; /* crop from center */
    display: block;     /* remove inline spacing */
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);

  }

  .image-cropper:hover .cropped-image {
    transform: scale(1.05);
}


@media (max-width: 768px) {
    .image-cropper {
      margin-bottom: 60px;
    }
  }
  
  @media (max-width: 480px) {
    .image-cropper {
      margin-bottom: 40px;
    }
  }




  

  .image-cropper-second {
    height: 320px; /* Set desired cropped height */
    overflow: hidden; /* Crop overflow */
    border-radius: 8px; /* Optional: maintain rounded corners */
    margin-bottom: 100px;

}

.image-cropper-second img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image fills and crops nicely */
    object-position: center; /* Keep the focus in the center */
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);

}
.image-cropper-second img:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .image-cropper-second {
      margin-bottom: 60px;
    }
  }
  
  @media (max-width: 480px) {
    .image-cropper-second {
      margin-bottom: 40px;
    }
  }









.image-cropper-thired {
    height: 320px; /* Set desired cropped height */
    overflow: hidden; /* Crop overflow */
    border-radius: 8px; /* Optional: maintain rounded corners */
}

.image-cropper-thired img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image fills and crops nicely */
    object-position: center; /* Keep the focus in the center */
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}


.image-cropper-thired img:hover {
    transform: scale(1.05);
  }

  @media (max-width: 768px) {
    .image-cropper-thired {
      margin-bottom: 60px;
    }
  }
  
  @media (max-width: 480px) {
    .image-cropper-thired {
      margin-bottom: 0px;
    }
  }

  






  




/* Fixed modal width and height */
.modal-dialog {
    width: 800px !important;   /* Force fixed width */
    max-width: 800px !important; /* Prevent shrinking on smaller screens */
}

.modal-content {
    height: 500px; /* Fixed height */
    display: flex;
    flex-direction: column;
}

.modal-body {
    overflow-y: auto;
    flex-grow: 1;
    padding-right: 15px; /* Optional scrollbar spacing */
}

.modal-header, .modal-footer {
    flex-shrink: 0;
}

.modal-backdrop.show {
    background-color: rgba(50, 167, 190, 0.95);
}
  


  
  #leadership-team {
    background-color: #dcdcdc;  /* Grey background */
    padding: 100px 0;             /* Vertical padding */
    width: 100vw;                /* Full viewport width */
    margin-left: calc(-50vw + 50%); /* Break out of container */
      margin-top: 100px;
  }


  #leadership-team img {
    transition: transform 0.3s ease;  /* Smooth zoom */
  
    max-width: 100%;
    border-radius: 8px;  /* optional rounded corners */
  }
  
  #leadership-team img:hover {
    transform: scale(1.1);  /* Zoom in */
  }
  

  .nav-link.selected {
    font-weight: bold;
    color: #3DD952 !important;
}
  
@media (max-width: 768px) {
    .modal-dialog {
        width: 90% !important;
        max-width: 90% !important;
    }

    .modal-content {
        height: auto; /* Let content define height */
    }
}

/* Very small screens */
@media (max-width: 480px) {
    .modal-dialog {
        width: 95% !important;
        max-width: 95% !important;
    }

    .modal-content {
        height: auto;
    }

    .modal-body {
        padding-right: 10px;
    }
}