* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

:root {
  --corporate-blue: #055bb1;
  --corporate-orange: #fa8e36 !important;
  --corporate-white: #ffffff;
  --corporate-gray: #6b7280;
  --corporate-light-gray: #f8fafc;
  --corporate-border: #e5e7eb;
  --corporate-dark: #1f2937;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Account for fixed header in anchor links */
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  min-height: 100vh; /* Ensure body takes full viewport height */
}

/* Fixed Header Styles */
nav.fixed-header {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex !important; 
  justify-content: space-between;
  align-items: center;
  background-color: #fff;
  padding: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  width: 100%;
  box-sizing: border-box;
  height: 70px; /* Fixed height for consistency */
}

/* Main content wrapper */
.main-content {
  flex: 1; /* Take remaining space, pushing footer down */
  margin-top: 80px; /* Account for fixed header height */
}

/* For pages without .main-content wrapper, add top margin to first section */
.header-carousel {
  width: 100%;
  height: 500px;
  position: relative;
  overflow: hidden;
  color: #fff;
  margin-top: 70px; /* Push below fixed header */
}

   nav {
    display: flex !important; 
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    padding: 12px;
  }

  .logo {
    margin-left: 50px;
  }
  
  .logo img {
    width: 20%;
    height: auto;
  }
  
  .blue {
    color: #015cb1;
    font-weight: 900;
    font-size: 1.5rem;
    margin-left: 10px;
    letter-spacing: 1.5px;
  }
  
  .orange {
    color: #ff8100;
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: 1.5px;
  }
  
  .nav-links {
    list-style: none;
    display: flex;
    gap: 50px;
    margin-left: auto;
    margin-right: 45px;
    margin-top: 10px;
  }
  
  .nav-links li {
    display: inline-block;
  }
  
  .nav-links a {
    text-decoration: none;
    text-wrap-mode: nowrap;
    color: #333;
    font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-weight: 400;
    transition: transform 0.3s ease, color 0.3s ease;
    display: inline-block;
    position: relative;
  }
  
  .nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background-color: transparent;
    transition: background-color 0.3s ease;
  }
  
  .nav-links a:hover {
    transform: scale(1.05); 
    text-decoration: none;/* Slightly zoom in when hovered */
  }
  
  .nav-links a:hover::after {
    background-color: #015cb1;
  }
  .hamburger {
    display: none;
    cursor: pointer;
  }
  .mobile-menu {
    position: fixed;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100%;
    background-color: #fff;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
    transition: left 0.3s ease;
    z-index: 1000;
  }
  .mobile-menu.active {
    left: 0;
  }
  .close-menu {
    font-size: 30px;
    color: black;
    padding: 15px;
    cursor: pointer !important;
    text-align: right;
  }
  
  .mobile-menu ul {
    list-style-type: none;
    padding: 0;
    margin-top: 20px;
  }
  
  .mobile-menu li {
   padding: 15px 60px;
  }
  
  .mobile-menu li a {
    text-decoration: none;
    color: black;
    display: block;
    position: relative;
    transition: transform 0.3s ease, color 0.3s ease;
  }
  .mobile-menu li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background-color: transparent;
    transition: background-color 0.3s ease;
}

.mobile-menu li a:hover {
    transform: scale(1.05);
    color: #015cb1;
}

.mobile-menu li a:hover::after {
    background-color: #015cb1;
}
  .hamburger {
    display: none;
    font-size: 30px;
    cursor: pointer;
  }

  .header-carousel {
    width: 100%;
    height: 500px;
    position: relative;
    overflow: hidden;
    color: #fff;
    margin-top: 70px !important;
  }
  
  .carousel-slide {
    position:relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 1s ease-in-out;
    opacity: 0;
  }
  
  .carousel-slide.active {
    opacity: 1;
  }
  
  #slide1 {
    background-image: url('./../images/HomeSlide1.png');
  }
  
  #slide2 {
    background-image: url('./../images/HomeBG2.png');
    color: black;
  }
  
  .carousel-content {
    padding-top:40px;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    justify-content: left;
    height: 100%;
    max-width: 600px;
  }
  
  .header-carousel h1 {
    margin: 50px 0;
    text-align: left;
    padding: 0;
    font-size: 4rem;
    font-weight: normal;
    margin-left: 50px;
  }
  
  .floating-btn {
  position: fixed;
  bottom: 70px;
  right: 30px;
  z-index: 999;
  animation: float 3s ease-in-out infinite;
}

.floating-btn a {
  display: inline-block;
  background-color: #015cb1;
  color: white;
  padding: 12px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease, transform 0.3s ease;
  
}

.floating-btn a:hover {
  background-color: #003260;
  transform: scale(1.05);
  text-decoration: none;
  color: white;
}

.demo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    background-color:#0056b3;
    color: #fff;
    border: none;
    width: fit-content;
    margin-left: 50px;
    margin-top: 20px;
    border-radius:8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.demo-btn:hover {
  background-color: #003260;
  transform: scale(1.05);
  text-decoration: none;
  color: white;
}

  #digicoffer {
    display: block;
    margin-top: 0;
    font-size: 4rem;
    font-weight: bolder;
    margin-left: 10px;
  }
  
  .header-carousel p {
    margin: 0px 0 0 50px;
    padding: 0;
    font-size: 1.2rem;
    font-weight: normal;
    width: 70%;
    color: #C8D7FF;
  }
  
  #content2 {
    margin: 10px 0 0 50px;
    padding: 0;
    font-size: 1.2rem;
    font-weight: normal;
    width: 70%;
    color: #515151;
  }
  
  #latest-features {
    display: block;
    margin-top: 0;
    font-size: 4rem;
    font-weight: bolder;
    margin-left: 2px;
    color: #0540B2;
  }


  .vision {
    position: relative;
    overflow: hidden;
    background-image: url("../images/VisionSlide.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    min-height: 500px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
  }
  
  .text-container {
    margin-left: 30px;
    max-width: 35%;
    color: black;
    transform: translateY(50%) translateX(-60px);
  }
  
  .text-container h2 {
    margin: 0;
    font-size: 2.5rem;
    font-weight: bolder;
  }
  
  #vision {
    color: #015cb1;
  }
  
  .text-container p {
    margin: 10px 0 0 0;
    font-size: 1.2rem;
    line-height: 1.5;
  }
  
.brand-blue{
  color:#015cb1;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #015cb1;
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
  z-index: 5;
}
.carousel-nav:hover { background: #ff9d00; }
.prev-btn { left: -20px; }
.next-btn { right: -20px; }

@keyframes fadeInUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

 
  .footer {
    background-color: #015cb1;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    width: 100%;
    position: relative;
    margin-top: auto;
  }
  
  .footer-left {
    display: flex;
    flex-direction: row;
    gap: 10px;
  }
  
  .footer-right {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    padding-bottom: 10px;
    gap: 20px;
  }
  
  .footer-text {
    margin: 0 0 5px 0;
    text-align: center;
  }
  .footer-text a{
    text-decoration: none;
    color: white;
  }
  .footer-text a:hover{
    text-decoration: none;
    color: white;
  }
  #terms{
    margin-bottom: 5px;
  }
  .footer-right .footer-icons {
    display: flex;
    gap: 20px;
  }
  
  .footer-icon {
    color: white;
    font-size: 24px;
    text-decoration: none;
    text-align: center;
    margin-top: 1px ;
  }
  
  .footer-icon:hover {
    color: #003260;
  }
  .invalid {
    border-bottom: 2px solid rgb(244, 0, 0) !important; /* Change the border color to red */
    outline: none; /* Remove default outline */
    font-size: 14px;
}

  .g-recaptcha {
    display: flex;
    /* margin-left: -50px; */
    justify-content: center;
    align-items: center;
  }
    
  @media (max-width: 768px) {
    .header-carousel h1 {
      font-size: 2rem;
    }
  
    .header-carousel p {
      font-size: 1rem;
    }
  }

    /* Navigation Dots */
      .carousel-dots {
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 15px;
        z-index: 10;
      }

      .dot {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.5);
        cursor: pointer;
        transition: all 0.3s ease;
        border: 2px solid transparent;
      }

      .dot.active {
        background-color: #015cb1;
        border-color: #fff;
        transform: scale(1.2);
      }

      .dot:hover {
        background-color: rgba(255, 255, 255, 0.8);
        transform: scale(1.1);
      }

      /* Responsive adjustments for dots */
      @media (max-width: 768px) {
        .carousel-dots {
          bottom: 20px;
        }
        
        .dot {
          width: 10px;
          height: 10px;
        }
      }

      @media (max-width: 470px) {
        .carousel-dots {
          bottom: 20px;
        }
        
        .dot {
          width: 8px;
          height: 8px;
        }
      }

      /* Ensure carousel content is positioned correctly */
      .carousel-content {
        padding-top: 40px;
        padding-left: 20px;
        display: flex;
        flex-direction: column;
        justify-content: left;
        height: 100%;
        max-width: 600px;
        position: relative;
        z-index: 5;
      }
  
    .carousel-slide.paused {
      animation-play-state: paused;
    }

    /* Add these styles to your main.css file */

    .rc-anchor-normal .rc-anchor-pt {
        margin: 3px 5px 0 0 !important;
        /* padding-right: 2px; */
        position: relative !important;
        right: 0 !important;
        left: 25px !important;
        text-align: left !important;
        width: 60px !important;
}
.rc-anchor-pt a {
    display: inline;
    padding-left: 1px;
    padding-right: 1px;
    padding-top: 2px;
    padding-bottom: 2px;
    text-decoration: none;
}
/* Enhanced Header Carousel Styles */
.header-carousel {
  width: 100%;
  height: 500px;
  position: relative;
  overflow: hidden;
  color: #fff;
  margin-top: 80px;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: opacity 0.8s ease-in-out;
  opacity: 0;
  z-index: 1;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 2;
}

.carousel-slide.paused {
  transition: none;
}

#slide1 {
  background-image: url('./../images/HomeSlide1.png');
}

#slide2 {
  background-image: url('./../images/HomeBG2.png');
  color: black;
}

/* Navigation Dots */
.carousel-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
  z-index: 10;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(50, 50, 50, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.dot.active {
  background-color: #015cb1;
  border-color: #fff;
  transform: scale(1.2);
}

.dot:hover {
  background-color: rgba(255, 255, 255, 0.8);
  transform: scale(1.1);
}

/* Responsive adjustments for dots */
@media (max-width: 768px) {
  .carousel-dots {
   bottom: 20px;
  }
  
  .dot {
    width: 10px;
    height: 10px;
  }
}

@media (max-width: 470px) {
  .carousel-dots {
    bottom: 20px;
  }
  
  .dot {
    width: 8px;
    height: 8px;
  }
}

/* Ensure carousel content is positioned correctly */
.carousel-content {
  padding-top: 40px;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  justify-content: left;
  height: 100%;
  max-width: 600px;
  position: relative;
  z-index: 5;
}

/* Professional Contact CTA Section */
.contact-cta-section {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 30%, #cbd5e1 100%);
  color: #1e293b;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

/* Subtle geometric background pattern */
.contact-cta-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(1, 92, 177, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(248, 142, 54, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(1, 92, 177, 0.04) 0%, transparent 50%);
  background-size: 600px 600px, 800px 800px, 400px 400px;
  background-position: 0 0, 100px 100px, 200px 50px;
}

/* Clean tech grid pattern */
.contact-cta-section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(1, 92, 177, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(1, 92, 177, 0.05) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.3;
  pointer-events: none;
}

/* Subtle floating elements */
.cta-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(3px 3px at 15% 25%, rgba(1, 92, 177, 0.15), transparent),
    radial-gradient(2px 2px at 85% 75%, rgba(248, 142, 54, 0.12), transparent),
    radial-gradient(2px 2px at 70% 15%, rgba(1, 92, 177, 0.1), transparent),
    radial-gradient(1px 1px at 30% 85%, rgba(248, 142, 54, 0.08), transparent);
  background-size: 400px 400px, 300px 300px, 500px 500px, 350px 350px;
  background-repeat: no-repeat;
}

.cta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg, 
    rgba(255, 255, 255, 0.7) 0%, 
    rgba(248, 250, 252, 0.8) 50%, 
    rgba(241, 245, 249, 0.6) 100%
  );
  backdrop-filter: blur(0.5px);
}

/* Content styling with dark text on light background */
.cta-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.cta-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -1px;
  color: #1e293b;
  position: relative;
}

.cta-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  /* background: linear-gradient(90deg, #015cb1 0%, #fa8e36 100%); */
  border-radius: 2px;
}

.cta-title .brand-blue {
  color: #015cb1;
  position: relative;
}

.cta-title .brand-blue::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  height: 2px;
  /* background: linear-gradient(90deg, #015cb1 0%, #fa8e36 100%); */
  opacity: 0.3;
  border-radius: 1px;
}

.cta-description {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 40px;
  color: #475569;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 36px;
  background: linear-gradient(135deg, #015cb1 0%, #0369a1 100%);
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(1, 92, 177, 0.25);
}

.cta-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg, 
    transparent, 
    rgba(255, 255, 255, 0.2), 
    transparent
  );
  transition: left 0.6s ease;
}

.cta-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* background: linear-gradient(135deg, #fa8e36 0%, #f97316 100%); */
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 12px;
  z-index: -1;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(1, 92, 177, 0.35);
  color: white;
  text-decoration: none;
}

.cta-btn:hover::before {
  left: 100%;
}

.cta-btn:hover::after {
  opacity: 0.9;
}

.cta-btn i {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.cta-btn:hover i {
  transform: translateX(3px);
}

/* Professional accent elements */
.cta-content::before {
  content: '';
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  /* background: linear-gradient(90deg, #015cb1 0%, #fa8e36 100%); */
  border-radius: 2px;
  opacity: 0.6;
}

/* Responsive Design */
@media (max-width: 768px) {
  .contact-cta-section {
    padding: 80px 0;
  }

  .contact-cta-section::after {
    background-size: 60px 60px;
  }

  .cta-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
  }

  .cta-title::after {
    width: 60px;
    height: 3px;
  }

  .cta-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    padding: 0 10px;
  }

  .cta-btn {
    padding: 16px 28px;
    font-size: 1rem;
  }

  .cta-content::before {
    width: 50px;
    height: 3px;
  }
}

@media (max-width: 480px) {
  .contact-cta-section {
    padding: 60px 0;
  }

  .contact-cta-section::after {
    background-size: 40px 40px;
  }

  .cta-title {
    font-size: 2rem;
    margin-bottom: 12px;
  }

  .cta-title::after {
    width: 50px;
    height: 2px;
  }

  .cta-description {
    font-size: 1rem;
    padding: 0 15px;
  }

  .cta-btn {
    padding: 14px 24px;
    font-size: 0.95rem;
    gap: 10px;
    border-radius: 10px;
  }

  .cta-btn i {
    font-size: 1rem;
  }

  .cta-content::before {
    width: 40px;
    height: 2px;
  }
}

/* Clean, minimal animations */
@keyframes subtleFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-5px);
  }
}

.cta-content {
  animation: subtleFloat 6s ease-in-out infinite;
}

/* Accessibility improvements */
@media (prefers-contrast: high) {
  .contact-cta-section {
    background: #ffffff;
  }
  
  .contact-cta-section::before,
  .contact-cta-section::after {
    display: none;
  }
  
  .cta-title {
    color: #000000;
  }
  
  .cta-description {
    color: #333333;
  }
  
  .cta-btn {
    background: #015cb1;
    border: 2px solid #015cb1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cta-content {
    animation: none;
  }
  
  .cta-btn::before {
    transition: none;
  }
  
  .cta-btn:hover {
    transform: none;
  }
}
/* Enhanced Our Branches Section - Fully Responsive */
.branches-container {
  max-width: 600px;
  margin: 0 auto;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 16px;
  padding: 30px 20px;
  box-shadow: 0 10px 30px rgba(1, 92, 177, 0.1);
  border: 1px solid #e9ecef;
  position: relative;
  overflow: hidden;
}

.branches-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #015cb1 0%, #ff8100 100%);
}

.branches-title {
  text-align: center;
  color: #333;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 25px;
  position: relative;
}

.branches-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #015cb1 0%, #ff8100 100%);
  border-radius: 2px;
}

.branches-grid {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 20px;
  padding-bottom: 15px;
  padding-right: 10px;
  /* Hide scrollbar but maintain functionality */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* Internet Explorer 10+ */
}

.branches-grid::-webkit-scrollbar {
  display: none; /* WebKit */
}

.branch-card {
  background: white;
  padding: 25px 18px;
  border-radius: 12px;
  text-align: left;
  transition: all 0.4s ease;
  min-width: 220px; /* Base width for desktop */
  flex-shrink: 0;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.branch-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #015cb1 0%, #ff8100 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.branch-card:hover::before {
  transform: scaleX(1);
}

.branch-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(1, 92, 177, 0.2);
  border-color: rgba(1, 92, 177, 0.3);
}

.branch-card.headquarters {
  background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
}

.branch-card.regional {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.branch-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  transition: all 0.3s ease;
  width: fit-content;
}

.headquarters .branch-icon {
  color: #015cb1;
}

.regional .branch-icon {
  color: #ff8100;
}

.branch-card:hover .branch-icon {
  transform: scale(1.1);
}

.branch-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 6px;
  line-height: 1.3;
}

.branch-location {
  font-size: 0.9rem;
  font-weight: 600;
  color: #015cb1;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.branch-address {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.4;
  flex-grow: 1;
}

.branch-address strong {
  color: #333;
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

/* Large Desktop (1440px and above) */
@media (min-width: 1440px) {
  .branches-container {
    max-width: 650px;
    padding: 35px 25px;
  }
  
  .branch-card {
    min-width: 240px;
    min-height: 190px;
    padding: 28px 20px;
  }
  
  .branches-title {
    font-size: 2rem;
    margin-bottom: 30px;
  }
}

/* Standard Desktop (1024px - 1439px) */
@media (min-width: 1024px) and (max-width: 1439px) {
  .branches-container {
    max-width: 580px;
    padding: 30px 20px;
  }
  
  .branch-card {
    min-width: 210px;
    min-height: 180px;
    padding: 25px 18px;
  }
    .right-section-container {
    order: 2;
    margin-top: 40px;
  }
}

/* Tablet Landscape (768px - 1023px) - Shows ~1.5 cards */
@media (min-width: 768px) and (max-width: 1023px) {
  .branches-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 25px 18px;
  }
  
  .branches-grid {
    gap: 18px;
    padding-right: 15px;
  }
  
  .branch-card {
    min-width: 280px; /* Shows 1.5 cards in 500px container */
    min-height: 170px;
    padding: 22px 16px;
  }
  
  .branches-title {
    font-size: 1.7rem;
    margin-bottom: 22px;
  }
  
  .branch-icon {
    font-size: 1.9rem;
  }
  
  .branch-name {
    font-size: 1.15rem;
  }
}

/* Tablet Portrait (600px - 767px) - Shows ~1.3 cards */
@media (min-width: 600px) and (max-width: 767px) {
  .branches-container {
    max-width: 450px;
    margin: 0 auto;
    padding: 22px 16px;
  }
  
  .branches-grid {
    gap: 16px;
    padding-right: 20px;
  }
  
  .branch-card {
    min-width: 300px; /* Shows 1.3 cards in 450px container */
    min-height: 165px;
    padding: 20px 15px;
  }
  
  .branches-title {
    font-size: 1.6rem;
    margin-bottom: 20px;
  }
  
  .branch-icon {
    font-size: 1.8rem;
    margin-bottom: 10px;
  }
  
  .branch-name {
    font-size: 1.1rem;
  }
  
  .branch-location {
    font-size: 0.85rem;
  }
  
  .branch-address {
    font-size: 0.8rem;
  }
}

/* Large Mobile (480px - 599px) - Shows ~1.25 cards */
@media (min-width: 480px) and (max-width: 599px) {
  .branches-container {
    max-width: 400px;
    margin: 0 15px;
    padding: 20px 15px;
  }
  
  .branches-grid {
    gap: 15px;
    padding-right: 25px;
  }
  
  .branch-card {
    min-width: 280px; /* Shows 1.25 cards in 400px container */
    min-height: 155px;
    padding: 18px 14px;
  }
  
  .branches-title {
    font-size: 1.5rem;
    margin-bottom: 18px;
  }
  
  .branch-icon {
    font-size: 1.7rem;
    margin-bottom: 10px;
  }
  
  .branch-name {
    font-size: 1.05rem;
  }
  
  .branch-location {
    font-size: 0.8rem;
    margin-bottom: 10px;
  }
  
  .branch-address {
    font-size: 0.75rem;
    line-height: 1.3;
  }
}

/* Standard Mobile (390px - 479px) - Shows ~1.2 cards */
@media (min-width: 390px) and (max-width: 479px) {
  .branches-container {
    max-width: 360px;
    margin: 0 12px;
    padding: 18px 12px;
  }
  
  .branches-grid {
    gap: 12px;
    padding-right: 30px;
  }
  
  .branch-card {
    min-width: 270px; /* Shows 1.2 cards in 360px container */
    min-height: 150px;
    padding: 16px 12px;
  }
  
  .branches-title {
    font-size: 1.4rem;
    margin-bottom: 16px;
  }
  
  .branch-icon {
    font-size: 1.6rem;
  }
  
  .branch-name {
    font-size: 1rem;
  }
  
  .branch-location {
    font-size: 0.78rem;
  }
  
  .branch-address {
    font-size: 0.72rem;
  }
}

/* Small Mobile (320px - 389px) - Shows ~1.1 cards */
@media (min-width: 320px) and (max-width: 389px) {
  .branches-container {
    max-width: 320px;
    margin: 0 10px;
    padding: 16px 10px;
  }
  
  .branches-grid {
    gap: 10px;
    padding-right: 35px;
  }
  
  .branch-card {
    min-width: 260px; /* Shows 1.1 cards in 320px container */
    min-height: 145px;
    padding: 15px 10px;
  }
  
  .branches-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
  }
  
  .branch-icon {
    font-size: 1.5rem;
  }
  
  .branch-name {
    font-size: 0.95rem;
  }
  
  .branch-location {
    font-size: 0.75rem;
    margin-bottom: 8px;
  }
  
  .branch-address {
    font-size: 0.7rem;
  }
  
  .branch-address strong {
    font-size: 0.8rem;
    margin-bottom: 6px;
  }
}

/* Extra Small Mobile (below 320px) */
@media (max-width: 319px) {
  .branches-container {
    max-width: 290px;
    margin: 0 8px;
    padding: 14px 8px;
  }
  
  .branches-grid {
    gap: 8px;
    padding-right: 40px;
  }
  
  .branch-card {
    min-width: 240px;
    min-height: 140px;
    padding: 14px 8px;
  }
  
  .branches-title {
    font-size: 1.2rem;
    margin-bottom: 14px;
  }
  
  .branch-icon {
    font-size: 1.4rem;
  }
  
  .branch-name {
    font-size: 0.9rem;
  }
  
  .branch-location {
    font-size: 0.7rem;
  }
  
  .branch-address {
    font-size: 0.65rem;
  }
}

/* Enhanced touch scrolling for mobile devices */
@media (max-width: 1023px) {
  .branches-grid {
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    scroll-snap-type: x mandatory; /* Snap to cards */
  }
  
  .branch-card {
    scroll-snap-align: start;
  }
}

/* Optional: Add subtle scroll indicators for mobile */
@media (max-width: 767px) and (max-width: 1023px) and (max-width: 479px) {
  .branches-container::after {
    content: '→';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(1, 92, 177, 0.5);
    font-size: 1.2rem;
    font-weight: bold;
    pointer-events: none;
    opacity: 0.7;
    animation: scrollHint 2s ease-in-out infinite;
  }
}

@keyframes scrollHint {
  0%, 100% { transform: translateY(-50%) translateX(0); opacity: 0.7; }
  50% { transform: translateY(-50%) translateX(3px); opacity: 1; }
}
/* Product Tagline */
.product-tagline {
  font-size: 0.95rem;
  font-weight: 700;
  color: #015cb1;
  line-height: 1.4;
  margin-bottom: 15px;
  position: relative;
  padding-bottom: 12px;
}
.product-tagline::after {
    width: 40px;          /* or whatever size you like */
    transition: none;     /* stops the growing animation */
}
.product-card:hover .product-tagline::after {
    width: 40px;          /* same width on hover – no change */
    cursor: pointer;
}

/* Minimal fix for products carousel - only add CSS variable */
.products-section {
  --cards-per-view: 3; /* Default: show 3 cards on desktop */
}
.right-section-container {
  /* flex: 1; */
  max-width: 50%;
  display: flex;
  flex-direction: column;
  margin-left: auto;
  gap: 30px;
  /* margin-top: 370px; */
}

/* Mobile menu header with logo and close button */
.mobile-menu-header {
    display: flex;
    align-items: center;
    gap: 20px;
    /* justify-content: space-between; */
    padding: 15px 20px;
    border-bottom: 1px solid #e5e7eb;
    background-color: #f8f9fa;
}

.mobile-menu-logo {
    display: flex;
    align-items: center;
}

.mobile-menu-logo img {
    height: 40px;
    width: auto;
}

.close-menu {
    font-size: 28px;
    color: #333;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    transition: color 0.3s ease;
}

.close-menu:hover {
    color: #015cb1;
}

/* Update mobile menu width */
.mobile-menu {
    width: 300px;
    left: -300px;
}

/* Mobile responsive adjustments */
@media (max-width: 470px) {
    .mobile-menu {
        width: 280px;
        left: -280px;
    }

    .mobile-menu-header {
        padding: 12px 15px;
    }

    .mobile-menu-logo img {
        height: 35px;
    }

    .close-menu {
        font-size: 24px;
    }
}