/* Base styles (Desktop) */
* {
   margin: 0;
   padding: 0;
   box-sizing: border-box;
}

body {
   font-family: Arial, sans-serif;
   line-height: 1.6;
   color: #333;
   background-color: #ffffff;
}

/* Header */
header {
   background-color: #ffffff;
   padding: 10px 20px;
   color: white;
   display: flex;
   justify-content: space-between;
   align-items: center;
   flex-wrap: wrap;
}

.logo {
   width: 80px;
   height: auto;
   margin-left: 20px;
}

.company-name {
   display: flex;
   flex-direction: column;
   justify-content: center;
   margin-right: 20px;
   text-align: center;
}

.company-name h1 {
   font-size: 36px;
   font-weight: 600;
   color: #2d309a;
   margin: 0;
   background-color: #ffffff;
   padding-right: 600px;
   font-family: arial,sans-serif;
}

.company-name p {
   font-size: 14px;
   color: white;
   margin: 0;
   text-transform: uppercase;
}

header nav ul {
   list-style: none;
   display: flex;
   margin-left: auto;
   padding-right: 20px;
   flex-wrap: wrap;
   /* Allows menu items to wrap */
   margin-top: 20px;
}

header nav ul li {
   margin-left: 20px;
}

header nav ul li a {
   color: #000000;
   text-decoration: none;
   padding-top: 30px;
}

header nav ul li a.active {
   border-bottom: 2px solid #001c38;
   padding-bottom: 2px;
}

/* Body */
/*Our services Header */
.services-header {
   background-color: #f4f4f4;
   /* Example color change */
   color: #003366;
   /* Example text color */
   padding: 20px;
   text-align: center;
}

.services-header h1 {
   font-size: 32px;
   margin: 0;
}

.container {
   width: 80%;
   margin: auto;
   overflow: hidden;
   padding: 20px;
}

section {
   padding: 0px 0;
}

.intro {
   text-align: center;
   margin-bottom: 20px;
}

/* General card styling */
.card {
   border: none;
   /* Remove default border */
   box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
   /* Add a subtle shadow */
   transition: transform 0.3s ease, box-shadow 0.3s ease;
   /* Smooth hover effect */
}

.card:hover {
   transform: translateY(-10px);
   /* Lift the card on hover */
   box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
   /* Intensify shadow on hover */
}

/* Card Image Styling */
.card-img-top {
   border-top-left-radius: 0.25rem;
   /* Keep image border radius consistent */
   border-top-right-radius: 0.25rem;
   height: 300px;
   /* Fixed height for all images */
   object-fit: cover;
   /* Ensure image covers the area without stretching */
}

/* Responsive adjustments for tablets */
@media (min-width: 768px) and (max-width: 1024px) {

   /* Adjust the container width for tablet screens */
   .container {
      width: 90%;
   }

   /* Adjust the padding of sections for better spacing */
   section {
      padding: 40px 0;
   }

   /* Adjust the card image size to fit better on tablet screens */
   .card-img-top {
      height: 250px;
      /* Reduce image height */
   }

   /* Adjust text sizes for better readability */
   .card-title {
      font-size: 1.4rem;
   }

   .card-text {
      font-size: 0.95rem;
   }

   /* Responsive adjustments for the features section on tablets */
   .feature-list {
      grid-template-columns: repeat(2, 1fr);
      /* 2 columns instead of 1 */
      gap: 15px;
   }

   /* Reduce padding and margins for features and testimonial sections */
   .features,
   .testimonial {
      padding: 20px 10px;
   }

   .testimonial blockquote {
      font-size: 16px;
      /* Slightly smaller font for better fit */
   }
}

/* Mobile first approach, adjusting small screens under 768px */
@media (max-width: 768px) {
   .container {
      width: 100%;
      padding: 0;
   }

   .card {
      margin-bottom: 2rem;
   }

   /* Ensure the card image resizes properly */
   .card-img-top {
      height: 200px;
   }

   .feature-list {
      grid-template-columns: 1fr;
      /* Single column for mobile */
   }

   .card-title {
      font-size: 1.2rem;
   }

   .card-text {
      font-size: 0.9rem;
   }
}

/* Card Title */
.card-title {
   font-size: 1.5rem;
   font-weight: bold;
   margin-bottom: 0.75rem;
}

/* Card Text */
.card-text {
   color: #555;
   /* Softer text color for descriptions */
   font-size: 1rem;
}

/* Container Padding */
.container {
   padding: 2rem 0;
   /* Add some vertical padding */
}

/* Responsive Adjustments */
@media (max-width: 576px) {
   .card {
      margin-bottom: 2rem;
      /* Extra space on small screens */
   }
}

/* Adjusting the card body padding */
.card-body {
   padding: 1.5rem;
}

/* Add some spacing between sections (optional) */
.container.my-5 {
   margin-top: 4rem;
   margin-bottom: 4rem;
}

h1,
h2,
h3 {
   font-family: 'Poppins', sans-serif;
   letter-spacing: 1px;
   margin-bottom: 15px;
}

p {
   font-family: 'Roboto', sans-serif;
   line-height: 1.8;
}

.features {
   background-color: #fff;
   padding: 20px;
   margin-top: 40px;
   border-radius: 5px;
   box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.feature-list {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
   gap: 20px;
}

.feature-item {
   text-align: center;
}

/* Footer */
footer {
   background-color: #003366;
   color: white;
   padding: 20px 0;
}

/* Container Flexbox for Footer */
.footer-container {
   display: flex;
   justify-content: space-between;
   padding: 40px;
   /* Added padding for smaller screens */
   align-items: flex-start;
   background-color: #012;
   color: white;
   flex-wrap: wrap;
   /* Allow sections to wrap on smaller screens */
}

/* General Footer Section Styling */
.footer-section {
   flex: 1;
   margin: 0 20px;
   color: #9bb2d4;
   min-width: 200px;
   /* Minimum width for each section */
}

/* Remove list bullets and padding */
.footer-section ul {
   list-style: none;
   padding: 0;
}

.footer-section ul li a {
   color: #9bb2d4;
   text-decoration: none;
}

.footer-section ul li a:hover {
   text-decoration: underline;
}

/* Certification images styling */
.certification-images {
   display: flex;
   flex-direction: column;
   align-items: center;
   /* Center the certifications */
   gap: 20px;
   flex-wrap: wrap;
}

.certification-row {
   display: flex;
   justify-content: space-around;
   /* Space out images evenly */
}

.certification-row img {
   max-width: 150px;
   height: auto;
   margin-right: 10px;
}

/* ISO certifications inline */
.iso-certification {
   width: 250px;
   /* Good size for larger screens */
   height: auto;
}

/* Quality Certifications Section for larger devices */
.footer-section .certification-images {
   display: flex;
   justify-content: space-between;
   align-items: center;
   margin-top: 10px;
}

.footer-section .certification-images img {
   width: 150px;
   height: auto;
   /* Adjust as needed */
}

/* Align Quality Certifications title properly in the footer */
.footer-section h3 {
   margin-bottom: 10px;
}

/* Footer Bottom Styling */
.footer-bottom {
   text-align: center;
   padding: 20px;
   background-color: #012;
   color: #9bb2d4;
   margin-top: 40px;
   border-top: 1px solid #4a5568;
}

/* Legal Links styling */
.legal-links {
   list-style: none;
   padding: 0;
   margin: 10px 0;
}

.legal-links li {
   display: inline;
   margin: 0 15px;
}

.legal-links li a {
   color: #9bb2d4;
   text-decoration: none;
}

/* Social Links Styling */
.social-links {
   list-style: none;
   padding: 0;
   margin: 10px 0;
}

.social-links li {
   display: inline;
   margin: 0 10px;
}

.social-links li a {
   color: #9bb2d4;
   text-decoration: none;
}

.social-links li a:hover {
   color: white;
}

/* Responsive Styles */
@media (max-width: 1024px) {
   header nav ul {
      padding-left: 0;
   }

   header .company-name {
      margin-right: 20px;
   }
}

@media (max-width: 768px) {
   .logo {
      width: 80px;
      margin-left: 10px;
      margin: 0 auto;
      padding-bottom: 15px;
   }

   .company-name h1 {
      font-size: 34px; /* Adjust font size */
      padding-right: 0; /* Remove large padding */
   }

   header {
      flex-direction: column;
      align-items: center;
   }

   header nav ul {
      flex-direction: column;
      margin-top: 10px;
      padding-left: 0;
   }

   h1 {
      font-size: 40px;
   }

   h2 {
      font-size: 36px;
   }

   header nav ul li {
      margin-bottom: 20px;
   }

   li{
      font-size: 18px;
   }
   .footer-container {
      flex-direction: column;
      /* Stack all sections vertically */
      align-items: center;
   }

   .footer-section {
      width: 100%;
      /* Make footer sections full-width */
   }

   .certification-row,
   .iso-certifications {
      justify-content: center;
      /* Center the certifications on small screens */
      flex-wrap: wrap;
      /* Allow wrapping for smaller screens */
   }

   .certification-row img,
   .iso-certifications img {
      max-width: 120px;
      /* Further adjust image sizes for small screens */
      margin: 10px 5px;
   }
}

@media (max-width: 480px) {
   header {
      padding: 10px;
   }

   header nav ul {
      flex-direction: column;
      align-items: center;
      padding: 0;
   }

   h1 {
      font-size: 30px;
   }

   h2 {
      font-size: 28px;
   }

   .footer-section {
      flex: 100%;
      /* Take full width for smaller devices */
      margin: 10px 0;
   }

   .certification-row img,
   .iso-certifications img {
      max-width: 100px;
      /* Further adjust image sizes for smallest screens */
   }

   .footer-container {
      padding: 20px;
   }
}

/* For laptops 1440px and above */
@media (min-width: 1440px) {
   .iso-certification {
      width: 250px;
   }
}

/* Footer adjustments for mobile */
@media (max-width: 768px) {
   .footer-container {
      flex-direction: column;
      align-items: center;
   }

   .footer-section {
      margin-bottom: 30px;
      text-align: center;
      /* Center-align text */
   }
}

/* For screens between 1024px and 1440px (Laptops) */
@media (max-width: 1440px) and (min-width: 1024px) {
   .iso-certification {
      width: 200px;
      /* Slightly larger for laptops */
   }

   .certification-images img {
      width: 120px;
      /* Proportional size for other images */
   }
}

/* For tablets between 768px and 1024px */
@media (max-width: 1024px) and (min-width: 768px) {
   .iso-certification {
      width: 180px;
      /* More readable on tablets */
   }

   .certification-images img {
      width: 110px;
   }
}

/* For phones and smaller devices (below 768px) */
@media (max-width: 768px) {
   .certification-images {
      flex-direction: column;
   }

   .iso-certification {
      width: 160px;
      /* Reduced size for better fit on phones */
   }

   .certification-images img {
      width: 100px;
      /* Adjust other images accordingly */
   }
}