/* ---------- Global Styles ---------- */
* {
    margin: 0;
    padding: -1px;
    box-sizing: border-box;
  }
  
  body {
    font-family: "Quicksand", sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: #fff;
    margin: 0;
    padding: 0;
  }
  
  .container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
  }

  .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
  }

  .logo {
    display: flex;
    align-items: center;
  }

  .logo-img img {
    height: 40px; /* Adjust based on your logo's aspect ratio */
    width: auto;
  }

  .menu-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
    display: none; /* Hidden by default on desktop */
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    z-index: 1002;
    position: relative;
    width: 40px; /* Ensure consistent width */
    height: 40px; /* Ensure consistent height */
  }

  
  h1, h2, h3, h4 {
    font-weight: 700;
  }
  
  a {
    text-decoration: none;
    color: inherit;
  }
  
  /* News Flash Bar */
  .news-flash-container {
    background: transparent;
    color: white;
    padding: 2rem 0;
    overflow: hidden;
    position: relative;
    z-index: 999;
    margin-top: 10px; /* Matches navbar height */
  }

  .news-flash-label {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.2);
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 2;
  }

  .news-flash-content {
    display: flex;
    white-space: nowrap;
    animation: scroll 40s linear infinite;
    width: max-content;
    will-change: transform;
  }
  
  .news-flash-content:hover {
    animation-play-state: paused;
  }

  .news-flash-item {
    margin-right: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 15rem;
  }
  
  .news-flash-item img {
    max-width: 100%;
    height: auto;
    display: block;
  }

  @keyframes scroll {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-50%);
    }
  }

  @media (max-width: 991px) {
    .menu-toggle {
      display: flex !important; /* Force show on mobile and tablet */
      align-items: center;
      background: #f8f9fa; /* Add background for better visibility */
      border-radius: 4px;
      box-shadow: 0 2px 4px rgba(0,0,0,0.1);
      justify-content: center;
      border: none;
      cursor: pointer;
      padding: 0.5rem;
      flex-direction: column;
      width: 40px;
      height: 40px;
      position: relative;
      margin-left: auto; /* Push to the right */
    }
    }
    
    /* Hide regular nav links on mobile */
    .nav-links {
      display: none !important;
    }
    
    /* Show nav links when menu is active */
    .nav-links.active {
      display: flex !important;
      flex-direction: column;
      position: fixed;
      top: 80px;
      left: 0;
      right: 0;
      background: white;
      padding: 1rem;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
      z-index: 1000;
    }
    
    .menu-toggle span {
      display: block;
      width: 100%;
      height: 3px;
      background-color: #333;
      transition: all 0.3s ease;
    }
    
    .nav-links {
      position: fixed;
      top: 0;
      right: -300px;
      width: 280px;
      height: 100vh;
      background: white;
      flex-direction: column;
      justify-content: flex-start;
      padding: 5rem 2rem 2rem;
      box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
      transition: right 0.3s ease;
      z-index: 1001;
      gap: 1.5rem;
      align-items: flex-start;
      overflow-y: auto;
    }
    
    .nav-links.active {
      right: 0;
    }
    
    .nav-links ul {
      flex-direction: column;
      width: 100%;
      gap: 1rem;
    }
    
    .nav-buttons {
      flex-direction: column;
      width: 100%;
      margin: 1rem 0 0;
      gap: 1rem;
    }
    
    .nav-buttons .btn-nav {
      width: 100%;
      text-align: center;
      margin: 0;
    }
    
    .nav-links a {
      width: 100%;
      padding: 0.75rem 0;
    }
    
    .nav-links > ul > li {
      width: 100%;
    }
    
    .nav-links > ul > li > a::after {
      display: none;
    }
  
  
  @media (max-width: 768px) {
    .news-flash-container {
      margin-top: 60px; /* Adjust for mobile header */
    }
    
    .news-flash-label {
      font-size: 0.8rem;
      padding: 0.2rem 0.8rem;
    }
    
    .news-flash-item {
      font-size: 0.85rem;
      margin-right: 2rem;
    }
  }

  /* ---------- Navbar ---------- */
  .header-navbar-container {
    max-width: 1400px;
    margin: 0 1rem 0 auto;
    padding: 0 2rem;
    width: 10%;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: #fff;
    border-bottom: 1px solid #eee;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
  }
  
  .nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 0;
    height: 100%;
    max-width: 1200px;
    margin: 0 3rem 0 auto;
    width: 100%;
  }
  
  .logo {
    width: 16rem;
    margin-left: -4rem;
  }
  
  /* Navbar Links */
  .nav-links {
    display: flex;
    gap: 3rem;
    justify-content: center;
    align-items: center;
  }

  @media (max-width: 991px) {
    .nav-links {
      display: none;
    }
    
    .nav-links.active {
      display: flex;
    }
  }
  
  /* Nav Buttons Container */
  .nav-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-left:2rem;
  }
  
  /* Menu Toggle */
  .menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
    color: #333;
    z-index: 1002;
    padding: 0.5rem;
    position: relative;
    width: 30px;
    height: 24px;
  }
  
  .menu-toggle span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: #333;
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
  }
  
  .menu-toggle span:nth-child(1) {
    top: 0px;
  }
  
  .menu-toggle span:nth-child(2),
  .menu-toggle span:nth-child(3) {
    top: -15px;
  }
  
  .menu-toggle span:nth-child(4) {
    top: 20px;
  }
  
  .menu-toggle span {
    display: block;
    width: 30px;
    height: 35px;
    margin: 5px 0;
    background: #33333300;
    transition: all 0.3s ease;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }
  
  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
  }
  
  .menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
  }

  /* Overlay for mobile menu */
  .overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(3px);
  }

  .overlay.active {
    display: block;
    opacity: 1;
  }
  
  /* Button Base Styles */
  .btn-nav {
    padding: 0.3rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    outline: none;  /* Removes focus outline */
  }
  
  /* Primary Button */
  .btn-primary {
    background: #0d6efd;
    color: white !important;
    border: 2px solid #0d6efd;
  }
  
  .btn-primary:hover {
    background: #0b5ed7;
    border-color: #0b5ed7;
    transform: translateY(-2px );
  }
  
  /* Outline Button */
  .btn-outline {
    background: transparent;
    color: #0d6efd !important;
    border: 2px solid #0d6efd;
  }
  
  .btn-outline:hover {
    background: rgba(13, 110, 253, 0.1);
    transform: translateY(-2px);
  }
  
  .nav-links a {
    color: #333;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
    display: flex;         /* ✅ Makes sure links align nicely */
    align-items: center;
    height: 100%;          /* keeps them consistent */
    outline: none !important;         /* Removes the focus outline */
    text-decoration: none;
    position: relative;
  }
  
  /* Active link style */
  .nav-links a.active,
  .nav-links a:active,
  .nav-links a:focus,
  .nav-links a:hover {
    color: #0d6efd;
  }
  
  /* Add underline effect only to navigation links (not buttons) */
  .nav-links > ul > li > a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #0d6efd;
    transition: width 0.3s ease;
  }
  
  .nav-links > ul > li > a:hover::after,
  .nav-links > ul > li > a.active::after {
    width: 100%;
  }
  
  /* Remove focus outline for all interactive elements */
  .nav-links a:focus,
  .nav-links button:focus,
  .nav-links .btn:focus,
  .nav-links a:active,
  .nav-links button:active,
  .nav-links .btn:active {
    outline: none !important;
    box-shadow: none !important;
  }
  
  .nav-links .btn-primary {
    padding: 0.45rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    margin-left: 0rem;
  }
  
  
  .btn-secondary {
    background: transparent;
    border: 2px solid #fff;
    color: #fff !important;
    padding: 0.3rem 1rem;
    border-radius: 6px;
    margin-left: 0.5rem;
    transition: 0.3s;
  }
  
  .btn-secondary:hover {
    background: #fff;

  }

  #view-case-studies:hover{
    background-color: #7f8c8d;
    transform: translateY(-2px);
    color: #fff;
    text-decoration: none;
  }
  
  /* Mobile Menu */
  .menu-toggle {
    display: none;
    font-size: 2rem;
    cursor: pointer;
  }
  /* SEO and Accessibility Improvements */

/* Skip to main content link for keyboard users */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #0d6efd;
  color: white;
  padding: 8px 16px;
  z-index: 100;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

/* Focus styles for better keyboard navigation */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 3px solid #0d6efd;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.5);
}

/* Screen reader only class */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Improved section header styles */
.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.section-intro {
  font-size: 1.2rem;
  color: #666;
  line-height: 1.6;
  margin-top: 1rem;
}

/* Stats counter animation */
@keyframes countUp {
  from { 
    opacity: 0;
    transform: translateY(20px);
  }
  to { 
    opacity: 1;
    transform: translateY(0);
  }
}

.counter {
  display: inline-block;
  animation: countUp 0.6s ease-out forwards;
}

/* Improved image handling */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Better figure styling */
figure {
  margin: 0;
  padding: 1rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

figure:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

figcaption {
  text-align: center;
  margin-top: 0.75rem;
  font-weight: 500;
  color: #444;
}

/* Navigation improvements */
.nav-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1.5rem;
}

.nav-links li {
  margin: 0;
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.5;
    color: #000;
    background: none;
  }
  
  a::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    font-weight: normal;
  }
  
  .container {
    width: 100%;
    padding: 0;
    margin: 0;
  }
}

 /* ---------- Footer ---------- */
  footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2c3e50 100%);
    color: #e0e0e0;
    padding: 4rem 0 2rem;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  }
  
  .footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
  }
  
  .footer-col {
    padding: 1rem;
  }
  
  .footer-col h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
  }
  
  .footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 50px;
    height: 3px;
    background: #007bff;
    border-radius: 3px;
  }
  
  .footer-col h4 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
  }
  
  .footer-col p {
    margin: 0.5rem 0 1.5rem;
    line-height: 1.7;
    max-width: 280px;
    color: #b0b0b0;
    font-size: 0.95rem;
  }
  
  .footer-col a {
    display: block;
    color: #b0b0b0;
    margin-bottom: 0.8rem;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    padding-left: 0;
    width: fit-content;
  }
  
  .footer-col a::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: all 0.3s ease;
  }
  
  .footer-col a:hover {
    color: #fff;
    padding-left: 20px;
  }
  
  .footer-col a:hover::before {
    opacity: 1;
    left: 0;
  }
  
  .social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
  }
  
  .social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    transition: all 0.3s ease;
  }
  
  .social-links a:hover {
    background: #007bff;
    transform: translateY(-3px);
    padding-left: 0;
  }
  
  .social-links a::before {
    display: none;
  }
  
  .footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .footer-col li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }

  .contact-info svg {
    flex-shrink: 0;
    color: #007bff;
  }

  .footer-bottom {
    max-width: 1200px;
    margin: 4rem auto 0;
    padding: 2rem 2rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
  }

  .footer-links {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
  }

  .footer-links a {
    color: #b0b0b0;
    font-size: 0.85rem;
    transition: color 0.3s ease;
  }

  .footer-links a:hover {
    color: #fff;
    text-decoration: none;
  }

  .footer-links span {
    color: #555;
    font-size: 0.85rem;
  }

  .copyright {
    margin: 0 !important;
    color: #888;
    font-size: 0.85rem;
  }

  @media (max-width: 768px) {
    .footer-bottom {
      flex-direction: column;
      text-align: center;
      gap: 1rem;
    }
    
    .footer-links {
      justify-content: center;
    }
  }