

/* Custom Colors */
:root {
    --primary-blue: #0e629e; 
    --primary-dark: #232323; 
    --light-green: #28a745; 
    --accent-green: #4ADE80;
    --light-blue-bg: #1B2F6A;
}

/**********************************************
 BASIC STYLES & TYPOGRAPHY
***********************************************/
html {
  scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif; /* Using Inter font */
    background-color: #ffffff;
    color: #123434;
    font-size: 1rem;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-weight: 600;
  line-height: 1.2;
  color: inherit;
}


h1 { font-size: calc(1.375rem + 1.5vw); }
h2 { font-size: calc(1.325rem + 0.9vw); }
h3 { font-size: calc(1.3rem + 0.6vw); }
h4 { font-size: calc(1.275rem + 0.3vw); }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }


p {
  margin-top: 0.8rem;
  margin-bottom: 1rem;
}

a {
  color: var(--primary-dark);
  text-decoration: none;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

a:hover {
  color: var(--primary-blue);
/*  text-decoration: underline;*/
}

.anim-bg{
     background-color: var(--primary-blue);
    background: linear-gradient(to right, rgb(24, 48, 119), rgb(24, 53, 146));
    background: linear-gradient(45deg, #183178 0%, #061747 10%, #2960FE 100%), url(../images/about-image.jpg);
    background-size: 200% 200%; 
    animation: background 6s ease infinite;
}

/**********************************************
 SPACING, UTILITIES & COMPONENTS
***********************************************/
.mt-max{
    margin-top: 6rem !important;
}

.mb-max{
    margin-bottom: 6rem !important;
}

.my-max{
   margin-top: 6rem !important; 
   margin-bottom: 6rem !important;
}

.pt-max{
    padding-top: 4rem !important;
}

.pb-max{
    padding-top: 4rem !important;
}

.py-max{
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
}

/* Buttons */
/* Solid Primary Button */
.btn-primary {
  background-color: #0E629E;
  border-color: #0E629E;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: #0A4A7A;
  border-color: #083A60;
}

/* Outline Primary Button */
.btn-outline-primary {
  color: #0E629E;
  border-color: #0E629E;
}
.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
  background-color: #0E629E;
  border-color: #0E629E;
  color: white;
}
/* Override btn-main with your color */
.btn-main {
  background-color: #0E629E;
  border-color: #0E629E;
  color: #ffffff;
}

/* Hover state - slightly lighter */
.btn-main:hover {
  background-color: #4ADE80;
  border-color: #4ADE80;
  olor: #ffffff;
}

/* Active/focus states - slightly darker */
.btn-main:active,
.btn-main:focus,
.btn-main.active {
  background-color: #142864;
  border-color: #112256;
  olor: #ffffff;
}

/* Disabled state */
.btn-main:disabled {
  background-color: #183078;
  border-color: #183078;
  opacity: 0.65;
}


/**********************************************
 NAVBAR
***********************************************/

/* Navbar adjustments for colors and font weights */
.nav-item, .nav-link {
    font-size: 1rem;
}
.nav-link {
  color: #272727;
  font-weight: 500;
}
.nav-link:hover, .nav-link:focus {
  color: #0D6EFD;
}
.nav-link.active {
  background-color: #e7f1ff;
  color: #0969FD !important;
  border-radius: 0.375rem;
}
.brand-logo{
    width: 5.5rem;
}

/* Navbar brand icon background */
.navbar-brand-icon {
  background-color: #0d3ac1;
  border-radius: 0.375rem;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-weight: 700;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.2rem;
  user-select: none;
  margin-right: 0.5rem;
}
.navbar-brand-text {
  font-weight: 600;
  color: #222;
  font-size: 1.1rem;
  line-height: 1;
  user-select: none;
}
.navbar-brand-subtext {
  font-weight: 400;
  font-size: 1rem;
  color: #555;
  user-select: none;
  margin-top: 0.1rem;
  line-height: 1;
}

/* Offcanvas nav customization */
.offcanvas-header .btn-close {
  filter: invert(30%) sepia(90%) saturate(300%) hue-rotate(130deg) brightness(85%);
}

/**********************************************
 HERO SECTION
***********************************************/

/* Hero Section Styling */
.hero-section {
    color: #fefefe;
    background-color: var(--primary-blue);
    background: linear-gradient(to right, rgb(24, 48, 119), rgb(24, 53, 146));
    background: linear-gradient(45deg, #183178 0%, #061747 10%, #176AB7 100%), url(../images/about-image.jpg);
    background-size: 200% 200%; 
    animation: background 6s ease infinite;
    min-height: 80vh; /* Take up most of the viewport height */
    display: flex;
    align-items: center;
    padding: 6rem 0;
    position: relative; /* For absolute positioning of amoeba */
    overflow: hidden; /* Hide overflow from amoeba shape */
}

.hero-content h1 {
    font-size: 3.5rem; /* Large heading */
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-content h1 span {
    color: var(--accent-green); /* Green text for "Africa's Health" */
}

.hero-content p {
    font-size: 1.3rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 550px;
}

.hero-buttons .btn {
    margin-right: 1rem;
    margin-bottom: 1rem; /* For small screens */
    min-width: 150px; /* Ensure buttons have minimum width */
}

.btn-green {
    background-color: var(--light-green);
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem; /* Rounded corners */
    transition: background-color 0.3s ease;
}

.btn-green:hover {
    background-color: #218838; /* Darker green on hover */
    color: #fff;
}

.btn-outline-white {
    background-color: transparent;
    color: #fff;
    border: 1px solid #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-outline-white:hover {
    background-color: #fff;
    color: var(--primary-blue); /* Dark blue text on white hover */
}

.feature-item {
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: white;
}

.feature-item i {
  color: #3db060;
  font-size: 1.2rem;
}
.hero-image {
    width: 90%;
    max-width: 450px;
    height: 100%;
    background-size: cover;
    aspect-ratio: 1 / 1;
    background: url('../images/biologist.jpg') no-repeat center/cover;
    border-radius: 150px;
    border: 15px solid #ffffff33;
    filter: drop-shadow(0 0 12px rgba(0,0,0,0.15));
    margin-left: auto;
    margin-right: auto;
}




/**********************************************
 SERVICES SECTION
***********************************************/
.service-section{
     background-color: #f8f9fa;
     padding-bottom: 90px !important; 
}
.text-primary-blue {
    color: #0e629e !important; 
   
}

.text-light-blue-accent {
    color: var(--light-blue-bg) !important;
}

.text-accent {
    color: var(--accent-green) !important;
}

.border-light-blue-accent {
    border-color: rgba(27, 47, 106, 0.2) !important; 
}

.card-shadow {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05); 
}

.icon-bg {
    background-color: rgba(27, 47, 106, 0.1); 
    color: var(--light-blue-bg); 
    width: 80px; 
    height: 80px; 
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%; 
    margin-bottom: 1.5rem; 
}

/* Hover effect for cards */
.feature-card {
    transition: transform 0.3s ease-in-out;
    transition: border 0.4s ease-in-out !important;
}

.feature-card:hover {

    transform: scale(1.05);
    border-right: solid 5px #0E629E66 !important;
    border-bottom: solid 5px #0E629E66 !important;
}



/* Adjusting line height for the title */
.title-line-height {
    line-height: 1.2;
}

/* Margin top for subtitle */
.subtitle-mt {
    margin-top: 4rem; 
}



/**********************************************
 ABOUT SECTION
***********************************************/


/* Custom button styling */
.btn-custom-blue {
    background-color: #0e629e;
    color: #fff;
    border-color: #D5D5D5;
    padding: 0.75rem 1.75rem; /* Equivalent to Bootstrap's btn-lg padding */
    border-radius: 0.5rem; /* Rounded corners */
    font-weight: 500;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.btn-custom-blue:hover {
    background-color: #0e629e; /* Darker blue on hover */
    border-color: #0e629e;
    color: #fff;
}

/* Custom checkmark list styling */
.checkmark-list {
    list-style: none; /* Remove default bullet points */
    padding-left: 0;
}

.checkmark-list li {
    position: relative;
    padding-left: 1.8rem; /* Space for the icon */
    margin-bottom: 0.75rem;
    color: #0e629e; /* Bootstrap secondary text color */
}

.checkmark-list li i {
    position: absolute;
    left: 0;
    top: 0.2rem;
    color: #0e629e; /* Checkmark color */
    font-size: 1.1rem;
}

/* Image container with background pattern */
.image-container {
    position: relative;
    padding: 1.5rem; /* Padding around the image to show background */
    background-color: rgba(27, 47, 106, 0.1); /* Light blue background as seen in image */
    border-radius: 1.5rem; /* Rounded corners */
    overflow: hidden; /* Ensure image doesn't overflow rounded corners */
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 600px; /* Adjust max width as needed */
    margin: 0 auto; /* Center the container */
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 1rem; /* Slightly less rounded than container */
    object-fit: cover; /* Ensures image covers the area, maintains aspect ratio */
}

.mission{
    border-left: 6px solid #0061ff66;
    padding: 10px 10px 10px 18px;
    font-style: italic;
    font-size: 1.3rem;
}

/* Responsive adjustments */
@media (min-width: 992px) { /* Medium devices and up */
    .who-we-are-section .col-lg-6 {
        display: flex;
        align-items: center; /* Vertically align content in columns */
    }
}


/*******************************/
/*  WHY SECTION
/*******************************/
.why-section {
    padding: 60px 0;

}

.why-wrapper{
/*  background-color: #18348F;*/
    background: linear-gradient(45deg, #183077 0%, #061747 10%, #2196F3 100%), url(../images/about-image.jpg);
    background-size: 200% 200%; 
    height: 100%;
    width: 100%;
    animation: background 6s ease infinite;
  /*background: linear-gradient(25deg, rgba(231, 76, 60, 0.6), rgba(0, 6, 73, 0.9), rgba(63, 5, 0, 1)),
    url("../images/about-image.jpg");*/
  background-repeat: no-repeat;
  background-position: center;
  background-size: fill;
  border: 1px solid #ffffff44;
  border-radius: 40px;
  color: #fff;

}

@keyframes background { 
  0% {
    background-position: 0% 50%;
  }
  
  50% {
    background-position: 100% 50%;
  }
  
  100% {
    background-position: 0% 50%;
  }
} 
  

.why-h1{
/*  margin:auto 0;*/
font-variant: small-caps;
}

.why-section p{
  text-align: justify-all;

}

.edge-list{
    border-bottom: 1px solid #ffffff44;
    padding: 12px;
    margin: 0;
}

.edge-list:hover{
    background-color: #ffffff12;
}
.edge-bold{
    display: inline-block;
    padding: 10px;
    background-color: #ffffff12;
    border-radius: 10px;
    font-weight: bold;
}

/*******************************/
/*  CTA SECTION
/*******************************/
.cta-section {
    background: linear-gradient(to right, #2a60ff, #00c853); 
    padding: 90px 10px;
}


/*******************************/
/*  MSSION SECTION
/*******************************/
.mission-section{

}
.vi{
    font-size: 4rem;
}

/*******************************/
/*  FOOTER SECTION
/*******************************/
.footer {
    background-color: #1a2232; /* Dark background as per image */
    color: #ffffff;
    padding: 40px 0;
    font-size: 0.9rem;
    margin-top: auto; /* Pushes footer to the bottom */
}
.footer h5 {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer .footer-logo{
    width: 300px;
}
.footer .list-unstyled li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
    margin-bottom: 8px;
    display: block;
}
.footer .list-unstyled li a:hover {
    color: #ffffff;
}
.footer .social-icons .btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: none;
    transition: background-color 0.3s ease;
}
.footer .social-icons .btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}
.footer .contact-info p {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.7);
}
.footer .contact-info i {
    margin-right: 10px;
    color: #ffffff;
    width: 20px; /* Align icons */
    text-align: center;
}
.footer .contact-info a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer .contact-info a:hover {
    color: #ffffff;
}
.footer .footer-bottom {
    background-color: #1a2232; /* Same as footer background */
/*    border-top: 1px solid rgba(255, 255, 255, 0.1);*/
    padding-top: 20px;
    
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}
.footer .footer-bottom a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.3s ease;
}
.footer .footer-bottom a:hover {
    color: #ffffff;
}
.footer .description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}
.footer .logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 5px;
}
.footer .logo-subtext {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .footer .col-md-3 {
        margin-bottom: 30px;
    }
    .footer .text-md-start,
    .footer .text-md-end {
        text-align: center !important;
    }
    .footer .social-icons {
        text-align: center;
        margin-top: 20px;
    }
    .footer .social-icons .btn {
        margin: 0 5px;
    }
}


/*******************************/
/*  PAGES
/*******************************/
/* Hero Section for pages */
.page-hero{

    color: #fefefe;
    background-color: var(--primary-blue);
    background: linear-gradient(to right, rgb(24, 48, 119), rgb(24, 53, 146));
    background: linear-gradient(45deg, #183178 0%, #061747 10%, #176AB7 100%), url(../images/about-image.jpg);
    background-size: 200% 200%; 
    animation: background 6s ease infinite;
    min-height: 50vh; /* Take up most of the viewport height */
    display: flex;
    align-items: center;
    padding: 6rem 0;
    position: relative; /* For absolute positioning of amoeba */
    overflow: hidden; /* Hide overflow from amoeba shape */
}

.page-hero a{
    color: var(--accent-green);
}

.services-page{

}

.services-page .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #343a40;
}
.services-page .section-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
}
.services-page .card {
    border-radius: 15px; /* Rounded corners for cards */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* Subtle shadow for depth */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden; /* Ensure rounded corners apply to children */
}
.services-page .card:hover {
    transform: translateY(-5px); /* Slight lift on hover */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.services-page .card-header-custom {
    padding: 1.5rem;
    border-bottom: none;
    color: white; /* Text color for header */
    border-top-left-radius: 15px; /* Match card border radius */
    border-top-right-radius: 15px; /* Match card border radius */
}
.services-page .card-header-blue {
    background: linear-gradient(to right, #3B82F6, #2664EB);
}
.services-page .card-header-green {
    background: linear-gradient(to right, #22C45E, #18A74D);
}
.services-page .card-header-purple {
    background: linear-gradient(to right, #A855F7, #9535EB);
}
.services-page .card-header-orange {
    background: linear-gradient(to right, #F97316, #EB5A0D);
}
.services-page .card-header-custom .card-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-left: 1.2rem;
    margin-bottom: 0.1rem;
}

.services-page .card-text{
    font-size: 1rem;
}
.services-page .card-header-custom .card-icon {
    font-size: 2.8rem;
    margin-bottom: 0.2rem;
    background-color: #ffffff34;
    padding: 15px;
    border-radius: 15px;
}
.services-page .card-body ul {
    list-style: none; 
    padding-left: 0;
    font-size: 1.0rem;
    margin-bottom: 1.5rem;
}
.services-page .card-body ul li {
    margin-bottom: 0.95rem;
    color: #495057;
}
.services-page .card-body ul li i {
    color: #28a745; /* Checkmark icon color */
    margin-right: 0.5rem;
}
.services-page .btn-custom {
    background-color: #007bff; /* Example button blue */
    color: white;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: background-color 0.3s ease;
}
.services-page .btn-custom:hover {
    background-color: #0056b3; /* Darker blue on hover */
    color: white;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .section-title {
        font-size: 2rem;
    }
    .section-subtitle {
        font-size: 1rem;
    }
    .card-header-custom .card-title {
        font-size: 1.5rem;
    }
    .card-header-custom .card-icon {
        font-size: 2rem;
    }
}

/*Lab test form*/
form.lab-test{
    border: 1px solid #00000044;
    padding: 15px;
    border-radius: 20px;
}

.lab-test label{
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
}
.lab-test input, .lab-test select{
    padding: 10px;
    border: 1px solid #00000044;
}

/*******************************/
/*  RESPONSIVE DESIGN
/*******************************/

/* Base styles (mobile-first approach) - no media query needed */
/* These styles apply to all devices */
body {
  font-size: 16px;
  line-height: 1.5;
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  /* Your styles for small devices here */
  body {
    font-size: 17px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  /* Your styles for medium devices here */
  body {
    font-size: 18px;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  /* Your styles for large devices here */
  body {
    font-size: 19px;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  /* Your styles for extra large devices here */
  body {
    font-size: 20px;
  }
}

/* XXL devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
  /* Your styles for XXL devices here */
}

/* Custom media queries for specific needs */
/* Portrait tablets and small desktops */
@media (min-width: 768px) and (max-width: 991px) {
  /* Specific styles for this range */
}

/* Landscape phones and portrait tablets */
@media (max-width: 767px) {
  /* Specific styles for mobile and small tablets */
}

/* Portrait phones */
@media (max-width: 575px) {
 
    .hero-content{
        text-align: center;
    }
    .hero-content h1{
        font-size: 3rem;
    }

    .hero-badge{
        justify-content: center;
    }
    .image-right{
        display: none;
    }
    .hero-image{
        display: none;
    }

    .who-we-are-section{
        text-align: center;
    }

    .mission-section{
        text-align: center;
    }

}

}

/* High-resolution displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Styles for retina displays */
}

/* Print styles */
@media print {
  /* Styles for printed documents */
  body {
    background: white;
    color: black;
    font-size: 12pt;
  }
  
  /* Hide non-essential elements */
  .no-print {
    display: none !important;
  }
}

/* Dark mode preference */
@media (prefers-color-scheme: dark) {
  :root {
    --background-color: #121212;
    --text-color: #ffffff;
  }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
















@media (min-width: 992px) { /* Only for desktop (adjust breakpoint if needed) */
  .navbar .nav-item.dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
  }
  
  .navbar .dropdown-menu {
    display: block;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    margin-top: 0; /* Remove gap */
  }
}