

/* 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: helvetica, sans-serif; 
    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;
}
section{
   ;
}

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: #003366;
  border-color: #003366;
}
.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;
}

.btn-horange:hover{
    background-color:#F67E55;
    border: 1px solid #F67E55;
}

.section-title {
    font-family: "Arial Black", sans-serif;
    font-size: 2.3rem;
    font-weight: 700;
    color: #343a40;
    font-variant: small-caps;
    letter-spacing: 2px;
    margin: 14px auto;
}
.section-description {
    font-size: 1.1rem;

    color: #6c757d;
    max-width: 800px;
    margin: 0 auto 50px auto;
}

/**********************************************
 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: 10.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: 
    linear-gradient(to right, rgba(9, 62, 112, 1), rgba(130, 180, 200, 0.1)),
    url("../images/hero-bg.jpg") no-repeat center center;
    background-size: cover;
    background-position: top;
/*    background-attachment: fixed;*/
    min-height: 100vh; /* 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-family: 'Arial Black', Gadget, sans-serif;
    font-size: 4.5rem; /* Large heading */
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-content h1 span {
    color: #F67E55; /* Green text for "Africa's Health" */
}

.hero-content p {
    font-size: 1.3rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    
}

.hero-buttons .btn {
    margin-right: 1rem;
    margin-bottom: 1rem; /* For small screens */
    padding: 0.75rem 1.5rem;
    min-width: 150px; /* Ensure buttons have minimum width */
}

.btn-orange {
    background-color: #F67E55;
    color: #fff;
    border: none;
    border-radius: 0.5rem; /* Rounded corners */
    transition: background-color 0.3s ease;
}

.btn-orange:hover {
    background-color: #F5A489; /* Darker green on hover */
    color: #fff;
}

.btn-peach {
    background-color: #0da5a5;
    color: #fff;
    border: none;
    border-radius: 0.5rem; /* Rounded corners */
    transition: background-color 0.3s ease;
}

.btn-peach:hover {
    background-color: #1DC9C9; /* Darker green on hover */
    color: #fff;
}

.btn-red {
    background-color: #0da5a5;
    color: #fff;
    border: none;
    border-radius: 0.5rem; /* Rounded corners */
    transition: background-color 0.3s ease;
}

.btn-red:hover {
    background-color: #1DC9C9; /* 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/hero-image.png') no-repeat center/cover;
    
   
    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; 
}



.service-card {
    background-color: #fff;
    border-radius: 15px;
    padding: 25px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 250px; /* Ensure consistent card height */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 320px;
}


.service-card:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}
.service-icon {
    font-size: 2.5rem;
    color: #007bff; /* Bootstrap primary blue */
    background-color: #e9f5ff; /* Light blue background for icon */
    border-radius: 10px;
    padding: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    width: 4rem;
}
.service-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #343a40;
    margin-bottom: 10px;
}
.service-description {
    font-size: 0.95rem;
    color: #6c757d;
    line-height: 1.6;
}

.btn-primary-custom {
    background-color: #007bff;
    border-color: #007bff;
    border-radius: 10px;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 500;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}
.btn-primary-custom:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

/* Specific icon colors based on the image */
.icon-general-medicine { color: #007bff; background-color: #e9f5ff; } /* Blue */
.icon-surgery { color: #28a745; background-color: #e6faeb; } /* Green */
.icon-obstetrics { color: #fd7e14; background-color: #fff4e6; } /* Orange */
.icon-mental-health { color: #6f42c1; background-color: #f1e9fa; } /* Purple */
.icon-cardiology { color: #dc3545; background-color: #ffe9eb; } /* Red */
.icon-dialysis { color: #ffc107; background-color: #fff9e6; } /* Yellow */
.icon-laboratory { color: #17a2b8; background-color: #e6f9fb; } /* Teal */
.icon-emergency { color: #6c757d; background-color: #f1f2f3; } /* Gray */



/******Single Service page***********/
.service-side-bar{
    background-color: #F4F4F9;
    color: var(--primary-dark);
    padding: 18px;
}

.service-link{
    color: #454646;
    display: flex;
    padding: 16px;
    border-radius: 10px;
    margin-bottom: 15px;
    background-color: #ffffff;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease-in-out;
    font-weight: 500;
    font-size: 1.15rem;
    box-shadow: 0 0 5px #88888833;

}

.service-link .bi{
    transition: transform 0.3s ease-in-out;
    font-weight: bold;
    font-size: 1.1rem;
}

.service-link:hover{
    background-color: #0B4173;
    color: white;
}

.service-link:hover .bi{
    transform: rotate(90deg);
}

.image-wrapper{
    width: 100%;
    padding: 20px;
    background-color: #F4F4F9;
}

.service-top-image{
    height: 400px;
    width: 100%;
    object-fit: cover;
}

.service-text{
    font-size: 1.1rem;
    color: #494949;
    padding: 10px;
    margin: 15px 0;
}

.service-cta{
    background: #F67E5516;  /* fallback for old browsers */
    
    border-radius: 10px;
}
.service-cta-content{
    
    font-style: italic;
    color: #898989;
 }

.service-content{
    /*max-height: 860px;
    overflow-y: auto;
    scrollbar-width: thin;*/
    /*scrollbar-width: none; 
    scrollbar-color: transparent transparent;*/
}

/*.service-content::-webkit-scrollbar {
  width: 0; 
  height: 0; 
  background: transparent; 
}*/

.accordion-item {
    border-radius: 0.75rem; /* rounded corners */
    border: none;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); /* subtle shadow */
    margin-bottom: 1rem;
}
.accordion-header .accordion-button {
    border-radius: 0.75rem;
    font-weight: 600;
    color: #1f2937;
    background-color: #E7F1FF; /* Light gray background for header */
    transition: background-color 0.2s ease-in-out;
}
.accordion-header .accordion-button:focus{
    outline: none;
    border: none;
}
.accordion-header .accordion-button:not(.collapsed) {
    background-color: #d1d5db; /* A bit darker when expanded */
    color: #111827;
}
.accordion-body {
    background-color: #f9fafb; /* Lighter background for body */
    color: #4b5563;
}

/**********************************************
 ABOUT SECTION
***********************************************/
.about-card{
    background-color: #fff;
    border: 1px solid #ececec;
    border-radius: 15px;
    padding: 25px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.4s ease !important;
   
}
.about-card:hover {
    transform: translateY(-5px) scale(1.1) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid #0A3F71 !important;
}

/* 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 !important;
}

.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: 0.3rem; /* 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.1rem; /* Rounded corners */
    overflow: hidden; /* Ensure image doesn't overflow rounded corners */
    display: flex;
    align-items: center;
    justify-content: center;
    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;
}



/**********************************************
 TESTIMONIAL SECTION
***********************************************/
.testimonial-section {
    font-family: helvetica, "Inter", sans-serif;
    background-color: #f8f9fa; /* Light gray background */
}
.quote-icon-bg {
    background-color: #ff7f50; /* A shade of orange */
    color: white;
    padding: 0.75rem;
    border-radius: 50%; /* Full rounded */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1); /* Bootstrap-like shadow */
    width: 3rem; /* Fixed width for circular shape */
    height: 3rem; /* Fixed height for circular shape */
}

/* Custom card shadow to match the original image more closely */
.custom-card-shadow {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08);
}



/**********************************************
 MISSION SECTION
***********************************************/
.mission-section{
    font-family: verdana, sans-serif;
    font-size: 1rem;
    background: linear-gradient(45deg, #183077 0%, #061747 10%, #2196F3 100%), url(../images/hero-bg.jpg);
    background-size: 200% 200%; 
    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;
    ackground-position: center;
    background-size: fill;
    color: #fff;
}
.mission-section-light{
    background: rgba(242, 248, 252, 1.0);
}
@keyframes background { 
  0% {
    background-position: 0% 50%;
  }
  
  50% {
    background-position: 100% 50%;
  }
  
  100% {
    background-position: 0% 50%;
  }
}
.mission-card{
    background-color: #8ec6ff33;
    color: #ffffff;
    border: 1px solid #0A3F71 !important;
    
    border-radius: 15px;
    padding: 25px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.4s ease !important;
   
}
.mission-card-light{
    background-color: #f7fbff;
    border: 1px solid #dcebf4 !important;

}
.mission-card:hover {
    transform: translateY(-5px) scale(1.1) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid #ececec!important;
    
}

.mission-card-light:hover{
    border: 1px solid #cdcdcd!important;
}

/**********************************************
 TEAM SECTION
***********************************************/
.p-rel{
    position: relative;
}
.team-section {
    padding: 60px 0;
    background-color: #fff;
    border-radius: 15px;
    margin-top: 50px;
    margin-bottom: 100px;
}

.m-h{
    /*max-height: 800px;
    overflow: scroll;*/
}

.box{
    width: 300px;
    box-shadow: 2px 2px 30px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    overflow: hidden;
    position:relative;
    margin: 25px;
    min-height: 460px;
   /* position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);*/
}
.slide-image{
    height: 300px;
}
.slide-image img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    box-sizing: border-box;
}
.overlay{
    position: absolute;
    left: 0%;
    top: 0%;
    transform: translate(-50% -50%);
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    transition: all ease-in-out 0.3s;
}
.box:hover  .overlay{
    visibility: visible;
    animation: fade 0.5s;
}

@keyframes fade{
    0%{
        opacity: 0;
    }
    100%{
        opacity: 1;
    }
}
.view-detail{
    display: flex;
    width: 160px;
    height: 40px;
    justify-content: center;
    align-items: center;
    background-color: #ffffff;
    color: #252525;
    font-weight: 700;
    letter-spacing: 1px;
    font-family: calibri;
    border-radius: 20px;
    box-shadow: 2px 2px 30px rgba(0, 0, 0, 0.2);
}

.view-detail:hover{
    color: #ffffff;
    background-color: #f67e55;
}
.detail-box{
    width: 100%;
    text-align: center;
    padding: 10px 20px;
    box-sizing: border-box;
    transition: all ease 0.3s;
    font-family: calibri;
}
.team-name{
    font-size: 1.8rem;
    font-weight: 700;
    padding: 3px;
}
.team-title{
    padding: 5px;
}



/*******************************/
/*  CTA SECTION
/*******************************/
.cta-section {
    background: linear-gradient(to right, #2a60ff, #2aa2ff); 
    padding: 90px 10px;
}


/*******************************/
/*  MSSION SECTION
/*******************************/
.mission-section{

}
.vi{
    font-size: 4rem;
}

/*******************************/
/*  FOOTER SECTION
/*******************************/
.footer{
    font-size: 0.9rem;
}
.bg-dark-blue {
    background-color: #0b2241;
}
.text-light-blue {
    color: #17a2b8;
}
.link-light-blue {
    color: #fff;
    text-decoration: none;
}
.link-light-blue:hover {
    color: #17a2b8;
}
.form-control-dark {
    background-color: #0d385f;
    border: 1px solid #0d385f;
    color: white;
}
.form-control-dark::placeholder {
    color: #8c9cb1;
}
.btn-orange {
    background-color: #ff7f50;
    border: none;
    color: white;
}
.btn-orange:hover {
    background-color: #e56d44;
}
.social-icon {
    color: #fff;
    font-size: 1.25rem;
}
.social-icon:hover {
    color: #17a2b8;
}



.book-now{
    position: fixed;
    right: 70px;
    bottom: 8px;
}

/*******************************/
/*  SCROLL TO TOP
/*******************************/
/* container positioning */
  .scroll-top-wrap {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1050;
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    pointer-events: none; /* allow inner button to receive events */
  }

  /* the circular button */
  .scroll-top-btn {
    --btn-size: 56px;
    width: var(--btn-size);
    height: var(--btn-size);
    border-radius: 50%;
    background: #F67E55;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
    display: inline-grid;
    place-items: center;
    border: none;
    cursor: pointer;
    color: #fff;
    font-size: 20px;
    line-height: 1;
    pointer-events: auto;
    transition: transform .18s ease, box-shadow .18s ease;
  }

  .scroll-top-btn:focus {
    outline: none;
    box-shadow: 0 0 0 .25rem rgba(246,126,85,.25);
  }

  .scroll-top-btn:hover {
    transform: translateY(-3px);
  }

  /* SVG progress sits behind and around the button */
  .scroll-progress {
    position: absolute;
    width: 64px;
    height: 64px;
    left: 0;
    top: 0;
    pointer-events: none;
  }

  .scroll-progress svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg); /* start progress from top */
  }

  /* hidden state */
  .scroll-top-wrap.hidden {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .25s ease, transform .25s ease;
    pointer-events: none;
  }

  .scroll-top-wrap.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity .25s ease, transform .25s ease;
  }

  /* respect reduced motion */
  @media (prefers-reduced-motion: reduce) {
    .scroll-top-btn, .scroll-top-wrap {
      transition: none;
    }
  }

/*******************************/
/* CONTACT SECTION
/*******************************/
.contact-section{

}

/* Custom styles for the section */
.info-card {
transition: all 0.2s ease-in-out;
border-radius: 1rem;
border: 1px solid #dee2e6;
cursor: pointer;
background-color: #F4F4F9;
padding: 20px;
height: 100px;
}
.info-card-content{
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: start;
}
/* Hover effect for the entire card */
.info-card:hover {
background-color: #132D5C;
color: white !important;
}
.info-card:hover .info-icon {
background-color: white;
color: #132D5C !important;
transform: scaleX(-1);
}
.info-card:hover h6,
.info-card:hover p {
color: white !important;
}
.info-icon {
transition: transform 0.6s ease-in-out;
width: 60px;
height: 60px;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.8rem;
color: #fff;
background-color: #132D5C;
}
.form-container {
background-color: #f8f9fa;
border-radius: 1rem;
padding: 2rem;
min-height: 700px;
}

/* Ensure the image takes up the full space and has rounded corners */
.img-fluid {
border-radius: 1rem;
}
/* General text color for the cards */
.card-text-color {
color: #6c757d;
}

.contact-image-wrap{
    background-color: #F8F9FA;
    padding: 80px;
    border-radius: 30px;
}
.contact-image{
    width: 100%;
    height: 100%;
    object-fit: cover;
    box-sizing: border-box;
    transform: scaleX(-1);
}
.contact-form  input, 
.contact-form  select, 
.contact-form  textarea{
    border: 1px solid #a1a1a1 !important;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border: 1px solid #F67E55;
    outline: 2px solid #a1a1a155;
    box-shadow: 0 0 14px #00336633; /* Add shadow on focus */
}

/*******************************/
/*  HOW IT WORKS
/*******************************/

/* Base styles for the card container */
.card-container {
    display: flex;
    flex-wrap: nowrap;
    height: auto;
    min-height: 560px;
    transition: all 0.5s ease-in-out;
    gap: 10px; /* Add a small gap between cards */
}

/* Base styles for each card item */
.card-item {
    flex: 1; /* All cards initially have equal width */
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    transition: all 0.5s ease-in-out;
    min-height: 560px;
    background-color: #f0f0f5; /* Default background color */
    cursor: pointer;
}

/* Expanded card takes up more space */
.card-item.expanded {
    flex: 3; /* Expanded card is wider */
    background-color: #f5f2fd;
}

/* Specific background colors for each card */
.card-item:nth-child(1) { background-color: #f5f2fd; }
.card-item:nth-child(2) { background-color: #f2f8fc; }
.card-item:nth-child(3) { background-color: #f9f2fd; }
.card-item:nth-child(4) { background-color: #fdedf0; }

/* Styles for the number */
.card-item .number {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    color: #555;
    width: 80px;
    height: 80px;
    border-radius: 100%;
    background-color: #fff;
    position: absolute;
    top: 20px;
    left: 30%;
    transition: opacity 0.3s ease-in-out;
}

/* Styles for the title in its collapsed state */
.card-item .title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) rotate(-90deg);
    font-size: 1.2rem;
    font-weight: 700;
    white-space: nowrap;
    text-align: center;
    transition: all 0.3s ease-in-out;
    color: #343a40;
    text-transform: uppercase;
}

/* Styles for the content section, hidden by default */
.card-item .content {
    position: absolute;
    top: 10px;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 4rem 2rem;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* When a card is expanded: */
.card-item.expanded .title {
    /* Change title position to horizontal */
    transform: none;
    top: 20px;
    left: 32px;
    text-align: left;
    font-size: 1.5rem;
}

.card-item.expanded .number {
    /* Hide the number */
    opacity: 0;
}

.card-item.expanded .content {
    /* Show the content */
    opacity: 1;
    visibility: visible;
}

.card-item .content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #343a40;
}

.card-item .content p {
    font-size: 1rem;
    color: #6c757d;
}

.card-item .content img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    margin-top: 1.5rem;
/*            box-shadow: 0 4px 6px rgba(0,0,0,0.1);*/
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .card-container {
        flex-direction: column;
        min-height: 560px;
    }

    .card-item {
        flex: 3; /* Reset flex on mobile */
        width: 100%;
        min-height: 560px; /* Adjust min-height for mobile */
        height: 560px;
        margin-bottom: 15px;
        box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.15) !important;
    }

    .card-item.expanded {
        flex: 3;
        height: 560;
    }

    .card-item .title {
        transform: translateX(-50%) rotate(-90deg);
        bottom: 50%; /* Center vertically on mobile */
        left: 50%;
    }

    .card-item.expanded .title {
        transform: none;
        top: 20px;
        left: 20px;
        text-align: left;
        font-size: 1.2rem;
    }

    .card-item .content {
        padding: 2rem 1.5rem;
    }

    .card-item .content h2 {
        font-size: 1.2rem;
    }

    .card-item .content p {
        font-size: 0.9rem;
    }
}

/*******************************/
/*  PAGES
/*******************************/
/* Hero Section for pages */
.page-hero {
    position: relative;
    min-height: 50vh;
    overflow: hidden;
}

/* Base image layer */
.page-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url(../images/hero-bg.jpg) center/cover;
    z-index: 1;
}
/* Animated gradient overlay */
.page-hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #183178, #061747, #f43d00);
    background-size: 200% 200%;
    animation: background 6s ease infinite;
    z-index: 2;
    opacity: 0.7; /* Make gradient semi-transparent */
}

/* Content container */
.page-hero-content {
    width: 100%;
    position: relative;
    z-index: 3;
    color: #fefefe;
    display: flex;
    align-items: center;
}

.page-hero h1{
    font-family: calibri;
    font-variant: small-caps;
    font-size: 3.6rem;
}

/*.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; 
    display: flex;
    align-items: center;
    padding: 6rem 0;
    position: relative; 
    overflow: hidden; 
}*/

.page-hero a{
    color: #f49e00;
    font-size: 1.2rem;
    font-variant: small-caps;
}

.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) {
    
}


/*******************************/
/*  RESPONSIVE DESIGN
/*******************************/

/* Portrait phones (≤575px) */
@media (max-width: 575px) {
  body {
    font-size: 16px;
    line-height: 1.5;
  }
  .hero-content {
    text-align: center;
  }
  .hero-content h1 {
    font-size: 2.4rem;
    text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.3);
  }
  .hero-content p{
    font-family: calibri;
    font-weight: 500;
  }
  .hero-badge {
    justify-content: center;
  }
  .image-right,
  .hero-image {
    display: none;
  }
  .who-we-are-section,
  .mission-section {
    text-align: center;
  }
  .hero-buttons .btn {
    width: 100%;
    margin: 7px 0;
  }
   .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;
    }
    .cta-btn{
        width: 100%;
    }
  .mission-card:hover {
        transform: translateY(-5px) scale(1.03) !important;
        
    }
    .page-hero-content {
        text-align: center;
    }
}

/* Landscape phones & portrait tablets (576px–767px) */
@media (min-width: 576px) and (max-width: 767px) {
  body {
    font-size: 17px;
  }
  .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;
    }
    .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;
    }
    .cta-btn{
        width: 100%;
    }
    
}

/* Portrait tablets & small desktops (768px–991px) */
@media (min-width: 768px) and (max-width: 991px) {
  body {
    font-size: 18px;
  }
  .container {
    max-width: 900px !important; /* Slightly larger than default 720px */
  }
}

/* Large devices (992px–1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
  body {
    font-size: 19px;
  }
  .container {
    max-width: 1000px !important; /* Slightly larger than default 960px */
  }

  .who-we-are-section .col-lg-6 {
        display: flex;
        align-items: center; /* Vertically align content in columns */
    }
}

/* Extra large devices (1200px–1399px) */
@media (min-width: 1200px) and (max-width: 1399px) {
  body {
    font-size: 20px;
  }
  .container {
    max-width: 1200px !important; /* Slightly larger than default 1140px */
  }
}

/* XXL devices (≥1400px) */
@media (min-width: 1400px) {
  .container {
    max-width: 1400px !important; /* Slightly larger than default 1320px */
  }
}

/* High-resolution displays */
@media (-webkit-min-device-pixel-ratio: 2),
       (min-resolution: 192dpi) {
  /* Styles for retina displays */
}

/* Print styles */
@media print {
  body {
    background: white;
    color: black;
    font-size: 12pt;
  }
  .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 */
  }
}