/* Mobile Styles */

/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.5em;
    overflow-x: hidden;
}

/* Adjust logo size */

.parallax {
    background-attachment: scroll; /* Changes to normal scrolling on mobile */
    opacity: 1 !important; 
  }

/* World Map section remains unchanged */
#world-map {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #ffffff; /* Light background */
  padding: 40px 10%;
}


.container {
    max-width: 100%;
    padding: 10px;

}

/* Typography Adjustments */
h1 {
    font-size: 24px;
}
h2 {
    font-size: 24px !important;
}
h3 {
    font-size: 18px;
}
p {
    font-size: 16px;
    margin: 5px 0;
}

/* Navbar Adjustments */
#navbar {
    min-height: 20px;
    text-align: center;
    padding: 1px 0;
    max-height: unset;
}

#navbar ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
}

#navbar ul li {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 1px;
    float: none;
    width: 100%;
}

#navbar ul li a {
    padding: 15px;
    display: block;
}

/* Adjust Showcase Section */
#showcase {
    height: 400px;
    background-position: center;
}

#showcase .showcase-content {
    margin-top: 50px;
    padding-top: 100px;
    text-align: center;
    padding: 20px;
}



#showcase .showcase-content h1 {
    font-size: 24px;
}

#showcase .showcase-content p {
    font-size: 16px;
}

#showcase .showcase-content a {
     display: inline-block;
    margin-top: -20px;
    padding: 10px 20px;
}


/* Home Info */
#home-info {
    flex-direction: column;
    height: auto;
}

#home-info .info-img, #home-info .info-content {
    width: 100%;
}

#home-info .info-content {
    padding: 30px;
}

/* Features Section */
.box {
    width: 100%;
    padding: 20px;
}

/* Testimonials Section */
#testimonials bg-light{
    height: auto;
    padding: 20px;
}

.testimonials bg-light {
    background-color: brown;
}

/* Services Section */
.service-boxes {
    flex-direction: column;
    gap: 20px;
}

.box {
    max-width: 100%;
   padding-top: 60px;
   height: 400px;
}

/* Contact Form */
#contact-form .form-group {
    width: 100%;
    padding: 10px;
}

/* Footer Adjustments */
#main-footer {
    padding: 15px;
    font-size: 14px;
}

/* Responsive Grid Adjustments */
@media (max-width: 768px) {
  

    .about-content {
        flex-direction: column;
    }

     .about-images {
        width: 100%;
        margin-top: 25px;
        margin-bottom: -100px;
    }

    .about-text h1 {
        margin-top: -50px;
        font-size: 24px;
    }


    .about-grid {
        grid-template-columns: repeat(1, 1fr);
    }
    
    .about-section .btn {

    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
        
    }
}


@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

.services-section {
    text-align: center;
    padding-top: 50px;
    padding-bottom: 0px;
    background: linear-gradient(to right, #f9f9f9, #eef1f5); /* Soft gradient */
    font-family: 'Poppins', sans-serif;
}

.services-section h1 {
    padding-bottom: 30px;
}

.services-section h4 {
    font-size: 18;
    color: #000000;
    padding: 15px;
    margin-bottom: 40px;
}

/* Flexible layout with equal spacing */
.services-container {
    background: white;
    margin-top: 150px;
    border-radius: 1px;
    padding-top: 55px;
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two equal columns */
    grid-gap: 20px; /* Spacing between items */
    max-width: 600px;
    margin: auto;
    text-align: center;
}





/* Service items without a box */
.service-box {
    position: relative;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

/* Circle effect around the icon */
.service-box i {
    font-size: 25px;
    color: #ff6600;
    background: rgba(255, 102, 0, 0.1);
    padding: 20px;
    border-radius: 100%;
    transition: transform 0.3s ease-in-out;
}

/* Title */
.service-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-top: 12px;
}

/* Description appears on hover */
.service-description {
    font-size: 14px;
    color: #ffffff;
    background: rgb(0, 0, 0);
    padding: 10px;
    border-radius: 6px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    position: absolute;
    bottom: 110%; /* Moves tooltip above the icon */
    left: 50%;
    transform: translateX(-50%); /* Centers tooltip */
    opacity: 25%;
    visibility: hidden;
    transition: opacity 0.3s, transform 0.3s;
    white-space: nowrap; /* Prevents line break */
}

/* On hover, the description appears */
.service-box:hover .service-description {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}

/* Subtle hover effect for icons */
.service-box:hover i {
    transform: scale(1.2);
}

.transition-divider {
    width: 100%;
    height: 80px; /* Adjust height for a smoother effect */
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(240, 240, 240, 1) 100%);
}

#world-map {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.world-map-text {
    max-width: 300px; /* Adjust as needed */
    text-align: center; /* Centers text */
}

.map-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.map-container img {
    padding-top: 25px;
    width: 250px;
    margin: 0 auto; /* Centers image */
}

.world-map-text h2 span {
    font-size: 20px; /* Adjust as needed */
}

.world-map-text h2 {
    font-size: 22px; /* Adjust as needed */
}

#partners {
    margin-top: -75px;
}

/* Mobile styles */
@media (max-width: 768px) {

    #menu {
        display: none;
        flex-direction: column;
        background-color: white;
        position: absolute;
        top: 60px; /* just under the header */
        left: 0;
        width: 100%;
        z-index: 999;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
      }

      #menu.open {
        display: flex;
      }

      .menu-item {
        padding: 15px;
        text-align: center;
        border-bottom: 1px solid #eee;
      }

    #nav-menu {
        display: none;
        flex-direction: column;
        background-color: white;
        padding: 10px;
        position: absolute;
        top: 60px; /* adjust if needed */
        right: 10px;
        width: 150px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    #navbar .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 20px;
        max-height: 100px;
        overflow-y: hidden;
    }

    #nav-menu {
        transition: all 0.3s ease;
    }

    #nav-menu.active {
        display: block;
        left: 0px;
        border: #ff6600;
        margin-top: 19px;
    }

    #menu-toggle {
        
        display: block;
        font-size: 30px;
        cursor: pointer;
        padding: 20px;
        float: right;
    }

    #navbar ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #fff;
        padding: 0;
        margin: 0;
    }

    #navbar ul.show {
        display: flex;
    }

    #navbar ul li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #eee;
    }

    #navbar h1 {
        float: none;
        text-align: center;
        padding: 10px 0;
    }

    #navbar h1.Logo {
        text-align: center;
        flex-grow: 1;
        display: grid;
        justify-content: left;
    }

    .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
    }

    #menu-toggle {
        color: black;
        margin-bottom: 60px;
    }
}

#contact-form {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 17px;

}

#contact-form .container {
    display: flex;
    justify-content: center;
    
}

.section__container {
   
    text-align: center;
    background: linear-gradient(to bottom, #e9e6e6, #f5f5f5);
    padding: 4rem 2rem;
    border-top: 2px solid #eee;
    border-bottom: 2px solid #eee;
  
}

.section__container h1 {
    font-size: 20px;
}

.section__card {
    display: flex;
    flex-direction: column ;
    flex-wrap: nowrap;
    flex-grow: 1;
    align-items: center;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background-color: var(--white);
    border-radius: 5px;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
    padding: 0%;
    max-width: 300px;
}

.section__card h5 {
    font-size: 15px;
}
.section__card h6 {
    font-size: 12px;
}

.section__card h4 {
    font-size: 15px;
}


hr.mx-auto.mb-5.w-25 {
    margin-bottom: 3rem;
  }

  .nhs-services-section {
    padding: 60px 20px;
    background: linear-gradient(to right, #ffffff, #ffffff);
    font-family: 'Arial', sans-serif;
    margin: 15px;
  }

  .nhs-service-card h3 {
    font-size: 20px;
  }

  .nhs-service-card p {
    font-size: 15px;
  }

  #navbar h1.Logo-blog {
    margin-top: 26px !important;
    text-align: center;
    flex-grow: 1;
    display: grid;
    justify-content: left;
}

#home-articles .articles-container > *:first-child,
#home-articles .articles-container > *:last-child {
    grid-template-columns: 1fr;
    grid-column: auto;
}

#home-articles .articles-container article.card img {
    width: 100%;
    height: auto;}

#home-articles .articles-container {
    display: grid
;
    grid-template-columns: repeat(1, 1fr);
    grid-gap: 1rem;
}
.showcase-content-blog {
    
    display: flex;
    width: 300px !important;
    justify-content: left;
    align-items: center;
    flex-direction: column;
    min-width: 200px;
    margin-bottom: 350px;
    padding: 15px;

}

.showcase-content-blog p {
    font-size: 15px !important;
}

#home-articles h2 {
    font-size: 1.5rem;
    text-align: center;
}

#home-articles .articles-container article.card {
    padding: 0.5rem;
}

#home-articles .articles-container article.card.bg-dark,
#home-articles .articles-container article.card.bg-primary {
    color: white;
    padding: 1rem;
}

/* Ensure consistent image placement */
article.card img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0.5rem 0;
}

/* Testimonials For Mobile*/
.section__grid {
    grid-template-columns: 1fr; /* Only 1 card per row */
  }

  .section__card p {
    margin-bottom: 2rem;
    color: var(--text-light);
    transition: 0.3s;
    font-size: 13px;
  }

  .section__card::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    width: 30%;
    aspect-ratio: 1;
    border-radius: 100%;
    background-color: var(--primary-color);
    z-index: -1;
    transition: 0.5s;
  }
  

  /* --- Mobile Styles for "Our Team" Section --- */
@media screen and (max-width: 600px) {

    .team {
        width: 100%;
        height: auto;
        padding: 60px 0; /* Adjust vertical padding for mobile */
    }

    .center {
        /* Ensure the heading container is full width and centered */
        width: 100%;
        text-align: center;
        margin-bottom: 30px; /* Space below the heading */
    }

    .center h1 {
        font-size: 2.5rem; /* Smaller font size for mobile headings */
        text-align: center;
        padding: 0 20px; /* Add horizontal padding to heading itself */
    }

    .team-content {
        display: flex; /* Make the container a flexbox */
        flex-direction: column; /* Stack the team member boxes vertically */
        align-items: center; /* Center the boxes horizontally within the flex container */
        gap: 30px; /* Space between each stacked team member box */
        padding: 0 20px; /* Add horizontal padding to the team-content for overall spacing from edges */
    }

    .box {
        width: 100%; /* Each box takes full available width within team-content's padding */
        max-width: 300px; /* Limit the max width of each box to prevent it from getting too wide on tablets */
        background-color: #ff9933; /* Assuming this is the orange background from your screenshot */
        border-radius: 10px; /* Adjust if your cards have different border-radius */
        padding: 20px; /* Padding inside each team member box */
        text-align: center; /* Center text and image within each box */
        box-sizing: border-box; /* Include padding and border in the element's total width and height */
        /* Ensure no conflicting floats or specific widths from desktop styles */
        float: none; /* Override any potential float */
        margin: 0 auto; /* Ensure it's centered if max-width is applied */
    }

    .box img {
        width: 100px; /* Fixed width for the image */
        height: 100px; /* Fixed height for the image */
        object-fit: cover; /* Ensures image fills the area without distortion */
        border-radius: 50%; /* Makes the image circular */
        display: block; /* Ensures it takes its own line */
        margin: 0 auto 15px auto; /* Center image horizontally and add space below */
    }

    .box h3 {
        font-size: 1.5rem; /* Adjust heading size for names */
        color: #ffffff; /* Example color */
        margin-bottom: 5px; /* Space below name */
    }

    .box h5 {
        font-size: 0.9rem; /* Adjust sub-heading size for roles */
        font-weight: 600;
        color: #e0e0e0; /* Slightly lighter color for roles */
        letter-spacing: 1px;
        margin-bottom: 5px; /* Space below role */
    }

    .box h6 {
        font-size: 0.8rem; /* Adjust size for location */
        color: #cccccc; /* Even lighter color for location */
        margin-top: 10px; /* Space above location */
    }
}