/*
Theme Name: Clear Fr8 Limited
Theme URI: https://clearfr8.com
Description: Custom WordPress theme for Clear Fr8 Limited
Version: 1.0
Author: Your Name
*/

/* Base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  overflow-x: hidden;
}

/* Top Blue Strip */
.top-bar {
  background: #0d3ecf; /* blue */
  color: #fff;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 50px;
}
.top-left span {
  margin-right: 20px;
}
.top-left i {
  color: #fff;
  margin-right: 6px;
  transition: color 0.3s ease;
}
.top-left span:hover i {
  color: #e63946;
}
.top-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.top-right .social a {
  margin-left: 12px;
  cursor: pointer;
  color: #fff;
  transition: color 0.3s ease;
  text-decoration: none;
}
.top-right .social a:hover {
  color: #e63946;
}

/* Header Section */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 50px;
  background: #fff;
  border-bottom: 2px solid #e63946;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  position: stickyq;
  top: 0;
  z-index: 1000;
}

/* Logo */
.logo-box {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-box img {
  height: 90px;
  transition: transform 0.3s ease;
  max-width: 100%;
}
.logo-box img:hover {
  transform: scale(1.05);
}

/* =========================== */
/* WORDPRESS MENU STYLES */
/* =========================== */

/* Navigation Base Styles - MAIN MENU STAYS HORIZONTAL */
.nav {
  display: flex;
  gap: 5px;
}

.nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 5px;
  position: relative;
}

.nav li {
  position: relative;
}

.nav > ul > li > a {
  text-decoration: none;
  color: #222;
  font-weight: 600;
  font-size: 15px;
  position: relative;
  text-transform: uppercase;
  padding: 5px 20px;
  transition: all 0.3s ease;
  border-right: 1px solid #e0e0e0;
  display: block;
}

.nav li:last-child > a {
  border-right: none;
}

.nav > ul > li > a:hover {
  color: #0d3ecf;
	  border-bottom: 2px solid #0d3ecf;

}



/* Level 1: Submenu - STACKED VERTICALLY */
.nav .sub-menu,
.nav .children {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 240px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.1);
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 1000;
  padding: 0;
  pointer-events: none;
  border: 1px solid #e0e0e0;
}

.nav .sub-menu li,
.nav .children li {
  width: 100%;
  display: block;
}

/* Stack submenu items vertically */
.nav .sub-menu,
.nav .children {
  display: block;
}

.nav .sub-menu a,
.nav .children a {
  padding: 12px 20px;
  display: block;
  text-align: left;
  font-size: 14px;
  color: #333;
  transition: all 0.3s ease;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid #f5f5f5;
  width: 100%;
  box-sizing: border-box;
}

.nav .sub-menu li:last-child a,
.nav .children li:last-child a {
  border-radius: 0 0 7px 7px;
}

.nav .sub-menu li:first-child a,
.nav .children li:first-child a {
  border-radius: 7px 7px 0 0;
}

.nav .sub-menu a:hover,
.nav .children a:hover {
  background: #0d3ecf;
  color: #fff;
  padding-left: 25px;
	border-radius: 4px 4px 4px 4px;
}

/* Level 2: Child Menu - STACKED VERTICALLY */
.nav .sub-menu .sub-menu,
.nav .children .children {
  top: 0;
  left: 100%;
  transform: translateX(10px);
  background: #f8f9fa;
  border-radius: 6px;
  z-index: 1001;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  border: 1px solid #d0d0d0;
  min-width: 220px;
  display: block;
}

.nav .sub-menu .sub-menu li,
.nav .children .children li {
  display: block;
  width: 100%;
}

.nav .sub-menu .sub-menu a,
.nav .children .children a {
  background: #f8f9fa;
  color: #555;
  font-weight: 500;
  border-bottom: 1px solid #ccc;
  padding: 10px 18px;
  font-size: 14px;
  display: block;
  width: 100%;
}

.nav .sub-menu .sub-menu li:last-child a,
.nav .children .children li:last-child a {
  border-radius: 0 0 5px 5px;
}

.nav .sub-menu .sub-menu li:first-child a,
.nav .children .children li:first-child a {
  border-radius: 5px 5px 0 0;
}

.nav .sub-menu .sub-menu a:hover,
.nav .children .children a:hover {
  background: #0d3ecf;
  color: #fff;
  padding-left: 22px;
	border-radius: 4px 4px 4px 4px;
}

/* Level 3: Subchild Menu - STACKED VERTICALLY */
.nav .sub-menu .sub-menu .sub-menu,
.nav .children .children .children {
  top: 0;
  left: 100%;
  background: #fff;
  border: 1px solid #000;
  min-width: 200px;
  display: block;
}

.nav .sub-menu .sub-menu .sub-menu li,
.nav .children .children .children li {
  display: block;
  width: 100%;
}

.nav .sub-menu .sub-menu .sub-menu a,
.nav .children .children .children a {
  background: #fff;
  color: #666;
  font-weight: 400;
  border-bottom: 1px solid #000;
  padding: 9px 16px;
  font-size: 14px;
  display: block;
  width: 100%;
}

.nav .sub-menu .sub-menu .sub-menu li:last-child a,
.nav .children .children .children li:last-child a {
  border-radius: 4px 4px 4px 4px;
}

.nav .sub-menu .sub-menu .sub-menu li:first-child a,
.nav .children .children .children li:first-child a {
  border-radius: 4px 4px 4px 4px;
}

.nav .sub-menu .sub-menu .sub-menu a:hover,
.nav .children .children .children a:hover {
  background: #0d3ecf;
  color: #fff;
  padding-left: 20px;
	border-radius: 4px 4px 4px 4px;
}

/* Dropdown Arrows */
.nav li.menu-item-has-children > a,
.nav li.page_item_has_children > a {
  position: relative;
  padding-right: 35px;
}

.nav li.menu-item-has-children > a::after,
.nav li.page_item_has_children > a::after {
  content: "▾";
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: #666;
  transition: transform 0.3s ease;
}

/* Child menu arrows */
.nav .sub-menu li.menu-item-has-children > a,
.nav .sub-menu li.page_item_has_children > a,
.nav .children li.menu-item-has-children > a,
.nav .children li.page_item_has_children > a {
  padding-right: 30px;
}

.nav .sub-menu li.menu-item-has-children > a::after,
.nav .sub-menu li.page_item_has_children > a::after,
.nav .children li.menu-item-has-children > a::after,
.nav .children li.page_item_has_children > a::after {
  content: "▸";
  right: 12px;
  font-size: 14px;
  color: #888;
}

/* Hover States */
.nav li:hover > .sub-menu,
.nav li:hover > .children,
.nav li:focus-within > .sub-menu,
.nav li:focus-within > .children {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: all;
	border-radius: 4px 4px 4px 4px;
}

.nav li:hover > a::after,
.nav li:focus-within > a::after {
  color: #0d3ecf;
	
}

.nav .sub-menu li:hover > .sub-menu,
.nav .children li:hover > .children,
.nav .sub-menu li:focus-within > .sub-menu,
.nav .children li:focus-within > .children {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
}

/* Active menu item */
.nav .current-menu-item > a,
.nav .current-page-item > a {
  color: #0d3ecf;
  border-bottom:2px solid #0d3ecf;
}

/* =========================== */
/* HAMBURGER MENU STYLES - FIXED */
/* =========================== */

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  justify-content: center;
  align-items: center;
  margin-left: auto;
}

.hamburger span {
  width: 25px;
  height: 2px;
  background: #222;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
  display: block;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* =========================== */
/* MOBILE RESPONSIVE STYLES */
/* =========================== */

@media (max-width: 768px) {
  /* Show hamburger menu on mobile */
  .hamburger {
    display: flex;
    margin-left: 0;
    position: absolute;
    left: 50%; /* Center horizontally */
    top: 50%; /* Center vertically */
    transform: translate(-50%, -50%); /* Perfect centering */
  }
  
  /* Header layout for mobile */
  .header {
    position: relative; /* Needed for absolute positioning */
    padding: 10px 20px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Space out logo and button */
  }
  
  /* Logo on the left side */
  .header .logo-box {
    order: 1;
    margin-right: auto; /* Push to left */
  }
  
  /* Hamburger in the center */
  .header .hamburger {
    order: 2;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
  
  /* Button/actions on the right side */
  .header .actions {
    order: 3;
    margin-left: auto; /* Push to right */
  }
  
  /* Ensure button is visible and properly styled */
  .header .actions .btnq {
    padding: 10px 15px;
    font-size: 12px;
    white-space: nowrap;
  }
  
  /* Hide main navigation by default on mobile */
  .nav {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #fff;
    position: absolute;
    top: 100%;
    left: 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-top: 1px solid #e0e0e0;
    z-index: 1000;
  }
  
  /* Show navigation when hamburger is active */
  .nav.active {
    display: flex;
  }
  
  .nav ul {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }
  
  .nav > ul > li > a {
    padding: 15px 20px;
    border-right: none;
    border-bottom: 1px solid #f0f0f0;
    text-align: left;
    width: 100%;
  }
  
  .nav li:last-child > a {
    border-bottom: none;
  }
  
  /* Mobile dropdown menus - STACKED VERTICALLY */
  .nav .sub-menu,
  .nav .children {
    position: static;
    background: #f8f9fa;
    box-shadow: none;
    border-radius: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    border: none;
    border-left: 3px solid #0d3ecf;
    margin-left: 15px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0;
    display: block;
    width: calc(100% - 15px);
  }
  
  .nav .sub-menu.active,
  .nav .children.active {
    max-height: 1000px;
    padding: 0;
  }
  
  .nav .sub-menu a,
  .nav .children a {
    padding: 10px 15px 10px 20px;
    font-size: 13px;
    border-bottom: 1px solid #e8e8e8;
    width: 100%;
  }
  
  .nav .sub-menu li:last-child a,
  .nav .children li:last-child a {
    border-bottom: none;
  }
  
  /* Child menus in mobile - STACKED VERTICALLY */
  .nav .sub-menu .sub-menu,
  .nav .children .children {
    position: static;
    background: #f0f0f0;
    margin-left: 15px;
    border-left: 3px solid #cc202c;
    width: calc(100% - 15px);
    display: block;
  }
  
  .nav .sub-menu .sub-menu a,
  .nav .children .children a {
    padding: 8px 15px 8px 25px;
    font-size: 13px;
    width: 100%;
  }
  
  /* Subchild menus in mobile - STACKED VERTICALLY */
  .nav .sub-menu .sub-menu .sub-menu,
  .nav .children .children .children {
    position: static;
    background: #e8e8e8;
    margin-left: 15px;
    border-left: 3px solid #888;
    width: calc(100% - 15px);
    display: block;
  }
  
  .nav .sub-menu .sub-menu .sub-menu a,
  .nav .children .children .children a {
    padding: 8px 15px 8px 30px;
    width: 100%;
  }
  
  /* Mobile dropdown arrows */
  .nav li.menu-item-has-children > a,
  .nav li.page_item_has_children > a {
    padding-right: 45px;
  }
  
  .nav li.menu-item-has-children > a::after,
  .nav li.page_item_has_children > a::after {
    content: "▸";
    right: 20px;
    font-size: 16px;
  }
  
  .nav li.menu-item-has-children.active > a::after,
  .nav li.page_item_has_children.active > a::after {
    transform: translateY(-50%) rotate(90deg);
  }
}

/* Additional mobile optimization for very small screens */
@media (max-width: 480px) {
  .header {
    padding: 10px 15px;
    min-height: 55px;
  }
  
  .hamburger {
    width: 35px;
    height: 35px;
  }
  
  .hamburger span {
    width: 22px;
    height: 2px;
    margin: 2.5px 0;
  }
  
  .header .logo-box img {
    height: 45px;
  }
  
  .header .actions .btnq {
    padding: 8px 12px;
    font-size: 11px;
  }
}

/* Ensure proper spacing for all elements */
.header .logo-box {
  display: flex;
  align-items: center;
  z-index: 1; /* Ensure logo stays above hamburger if needed */
}

.header .actions {
  display: flex;
  align-items: center;
  z-index: 1; /* Ensure button stays above hamburger if needed */
}
/* Right Actions */
.actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.btnq {
  background: #e63946;
  color: #fff;
  padding: 12px 22px;
  font-weight: bold;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  transition: background 0.3s ease, transform 0.2s ease;
  text-decoration: none;
}
.btnq:hover {
  background: #0d3ecf;
  transform: translateY(-2px);
}
.btnqi {
  font-size: 14px;
}

/* Slider */
.slider {
  position: relative;
  width: 100%;
  height: 50vh;
  overflow: hidden;
}
.slides {
  width: 100%;
  height: 100%;
  position: relative;
}
.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.slide.active {
  opacity: 1;
}

/* Overlay */
.overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  background: rgba(0,0,0,0.4);
  padding: 15px 40px;
  border-radius: 10px;
  max-width: 80%;
}
.overlay h2 {
  font-size: 3rem;
  margin-bottom: 15px;
  text-transform: uppercase;
  font-weight: bold;
}
.overlay p {
  font-size: 1.3rem;
  margin-bottom: 20px;
}
.overlay .btn {
  padding: 12px 30px;
  background: linear-gradient(90deg, #e63946, #0d3ecf);
  color: #fff;
  border-radius: 6px;
}
.overlay .btn:hover {
  background: linear-gradient(90deg, #0d3ecf, #e63946);
}

/* Arrows */
.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 2rem;
  padding: 12px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s ease;
}
.prev:hover, .next:hover {
  background: #e63946;
}
.prev { left: 20px; }
.next { right: 20px; }

/* Dots */
.dots {
  position: absolute;
  bottom: 20px;
  width: 100%;
  text-align: center;
}
.dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin: 5px;
  background: #ddd;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s ease;
}
.dot.active, .dot:hover {
  background: #e63946;
}

/* Customs Section */
.customs-section {
  padding: 10px 10px;
  background: #f9fafc;
  position: relative;
  overflow: hidden;
}
.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 15px;
}
.section-title {
  text-align: center;
  font-size: 2.8rem;
  font-weight: bold;
  margin-bottom: 50px;
  position: relative;
  display: inline-block;
  color: #1073b6;
}
.section-title::after {
  content: "";
  position: absolute;
  width: 90px;
  height: 4px;
  background: #e63946;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  transition: transform 0.6s ease;
}
.customs-section:hover .section-title::after {
  transform: translateX(-50%) scaleX(1);
}

/* Flex Layout */
.content-box {
  display: flex;
  gap: 50px;
  align-items: flex-start;
  flex-wrap: wrap;
}

/* Call Box */
.call-box {
  background: #1073b6;
  color: #fff;
  flex: 1;
  min-width: 280px;
  padding: 40px 30px;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
  text-align: center;
  transform: translateY(40px);
  opacity: 0;
  animation: slideUp 1s ease forwards 0.3s;
  border-left: 8px solid #e63946;
}
.call-box p {
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.call-box h3 {
  font-size: 1.5rem;
  margin: 10px 0;
}
.call-box h2 {
  font-size: 1.8rem;
  font-weight: bold;
  color: #ffdf00;
  margin-top: 15px;
}
.phone-icon {
  font-size: 3rem;
  margin-bottom: 15px;
  color: #ffdf00;
  animation: bounce 1.5s infinite;
}

/* Text Box */
.text-box {
  flex: 2;
  min-width: 350px;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #333;
  transform: translateY(40px);
  opacity: 0;
  animation: fadeInUp 1.2s ease forwards 0.6s;
}
.text-box p {
  margin-bottom: 18px;
}

/* Services Section */
.services-section {
  background: linear-gradient(135deg, #1073b6 0%, #0a4f80 100%);
  padding: 100px 50px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
  height: auto;
}

/* Floating background animation */
.services-section::before {
  content: "";
  position: absolute;
  top: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  background: rgba(230,57,70,0.3);
  border-radius: 50%;
  animation: float 8s infinite ease-in-out alternate;
}
.services-section::after {
  content: "";
  position: absolute;
  bottom: -120px;
  right: -120px;
  width: 250px;
  height: 250px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  animation: float 10s infinite ease-in-out alternate-reverse;
}
@keyframes float {
  from { transform: translateY(0px); }
  to { transform: translateY(40px); }
}

/* Title */
.services-title {
  font-size: 2.8rem;
  font-weight: bold;
  margin-bottom: 60px;
  position: relative;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.services-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: #e63946;
  margin: 12px auto 0;
  border-radius: 2px;
}

/* Container */
.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: auto;
  position: relative;
  z-index: 2;
}

/* Service Card */
.service-card {
  background: #fff;
  color: #333;
  border-radius: 16px;
  padding: 50px 30px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
  transition: all 0.5s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.service-card::before {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: #1073b6;
  transition: 0.4s ease;
  z-index: 0;
}
.service-card:hover::before {
  top: 0;
}
.service-card:hover {
  transform: translateY(-12px) scale(1.03);
}

/* Icon Box */
.icon-box {
  background: #1073b6;
  color: #fff;
  font-size: 2.2rem;
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  position: relative;
  z-index: 1;
  transition: all 0.4s ease;
}
.service-card:hover .icon-box {
  background: #e63946;
  transform: rotate(15deg) scale(1.2);
}

/* Text */
.service-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 20px 0 10px;
  position: relative;
  z-index: 1;
  color: #1073b6;
  transition: color 0.3s ease;
}
.service-card:hover .service-title {
  color: #fff;
}
.service-text {
  font-size: 1rem;
  line-height: 1.6;
  position: relative;
  z-index: 1;
  color: #555;
  transition: color 0.3s ease;
}
.service-card:hover .service-text {
  color: #f1f1f1;
}

/* About Services Section */
.about-services {
  position: relative;
  padding: 80px 10%;
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  overflow: hidden;
}

.background-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('<?php echo get_template_directory_uri(); ?>/assets/images/logistics-bg.png') no-repeat center center;
  background-size: cover;
  opacity: 0.07;
  animation: gentleMove 60s linear infinite;
  z-index: 0;
}

@keyframes gentleMove {
  0% { transform: translate(0, 0); }
  50% { transform: translate(10px, 10px); }
  100% { transform: translate(0, 0); }
}

.about-title {
  text-align: center;
  font-size: 2.5rem;
  color: #2c3e50;
  margin-bottom: 50px;
  position: relative;
  z-index: 1;
}

.about-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  position: relative;
  z-index: 1;
}

.about-text p {
  font-size: 1rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 20px;
}

.about-text strong {
  color: #2c3e50;
  font-weight: bold;
}

.about-text span {
  color: #3498db;
  font-weight: bold;
}

/* Features Section */
.features-section {
  position: relative;
  padding: 90px 10%;
  text-align: center;
  overflow: hidden;
}

/* Blue dotted background (top left) */
.features-section::before {
  content: "";
  position: absolute;
  top: -60px;
  left: -60px;
  width: 220px;
  height: 220px;
  background-image: radial-gradient(#1073b6 2px, transparent 2px);
  background-size: 20px 20px;
  opacity: 0.25;
  z-index: 0;
  animation: floatDots 12s infinite linear;
}

/* Red dotted background (bottom right) */
.features-section::after {
  content: "";
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  background-image: radial-gradient(#e63946 2px, transparent 2px);
  background-size: 20px 20px;
  opacity: 0.25;
  z-index: 0;
  animation: floatDots 15s infinite linear reverse;
}

@keyframes floatDots {
  0% { transform: translate(0, 0); }
  50% { transform: translate(25px, -25px); }
  100% { transform: translate(0, 0); }
}

.features-title {
  font-size: 2.4rem;
  color: #1073b6;
  margin-bottom: 60px;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 35px;
  position: relative;
  z-index: 1;
}

.feature-card {
  background: #fff;
  border-radius: 14px;
  padding: 35px 25px;
  border: 2px solid #1073b6;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s ease forwards;
}

.feature-card:nth-child(1) { animation-delay: 0.2s; }
.feature-card:nth-child(2) { animation-delay: 0.4s; }
.feature-card:nth-child(3) { animation-delay: 0.6s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.feature-card:hover {
  transform: translateY(-10px);
  border-color: #e63946;
  box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.feature-card h3.blue { color: #1073b6; }
.feature-card h3.red { color: #e63946; }

.feature-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #444;
}

.feature-card strong {
  color: #1073b6;
}

/* Clients Section */
.clients {
  padding: 80px 10%;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: #fff;
}

.clients .section-title h2 {
  font-size: 2.2rem;
  color: #1073b6; /* Blue title */
  margin-bottom: 10px;
}

.clients .section-title p {
  color: #cc202c; /* Red subtitle */
  margin-bottom: 40px;
}

.clients-slider {
  overflow: hidden;
  position: relative;
}

.clients-track {
  display: flex;
  width: calc(250px * 8); /* adjust for your logos */
  animation: scroll 25s linear infinite;
}

.client-logo {
  flex: 0 0 250px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px;
  transition: transform 0.3s ease;
}

.client-logo img {
  max-width: 150px;
  max-height: 80px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.client-logo img:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 15px rgba(16,115,182,0.5), 
              0 6px 15px rgba(204,32,44,0.5);
  border-radius: 8px;
}

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

/* Footer */
.footer {
  background: #1073b6;
  color: #fff;
  padding: 60px 10% 20px;
  position: relative;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-logo {
  font-size: 1.6rem;
  font-weight: bold;
  color: #fff;
  margin-bottom: 15px;
}

.footer-col h4 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: #fff;
}

.footer-col p,
.footer-col ul li a {
  color: #f0f0f0;
  font-size: 0.95rem;
  line-height: 1.6;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a:hover {
  color: #cc202c;
}

.footer-social {
  margin-top: 15px;
}

.footer-social a {
  display: inline-block;
  margin-right: 12px;
  font-size: 1.1rem;
  color: #fff;
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer-social a:hover {
  color: #cc202c;
  transform: scale(1.2);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 15px;
  font-size: 0.9rem;
  color: #eee;
}

/* Animations */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes slideUp {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes fadeInUp {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* =========================== */
/* RESPONSIVE STYLES - FIXED */
/* =========================== */
@media (max-width: 1200px) {
  .top-bar, .header {
    padding: 6px 30px;
  }
}

@media (max-width: 992px) {
  .overlay h2 {
    font-size: 2.5rem;
  }
  .overlay p {
    font-size: 1.1rem;
  }
  .services-section {
    padding: 80px 30px;
  }
  .services-title {
    font-size: 2.4rem;
  }
  .about-services, .features-section, .clients {
    padding: 60px 5%;
  }
}

@media (max-width: 768px) {
  /* Top bar */
  .top-bar {
    flex-direction: column;
    padding: 10px 20px;
    text-align: center;
    gap: 10px;
  }
  .top-left span {
    display: block;
    margin: 5px 0;
  }
  
  /* Header */
  .header {
    padding: 10px 20px;
    flex-wrap: wrap;
  }
  
  /* Navigation - FIXED MOBILE STYLES 
  .nav {
    display: none;
    flex-direction: column;
    width: 100%;
    order: 3;
    margin-top: 15px;
  }
  .nav.active {
    display: flex;
  }
  .nav ul {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }
  .nav a {
    padding: 12px;
    border-right: none;
    border-bottom: 1px solid #eee;
    text-align: center;
    display: block;
  }
  .nav li:last-child a {
    border-bottom: none;
  }*/
  
  /* Hamburger menu - FIXED 
  .hamburger {
    display: flex;
  }
  .hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }*/
  
  /* Mobile Dropdown Styles 
  .nav .sub-menu,
  .nav .children {
    position: static;
    background: #0d3ecf;
    box-shadow: none;
    border-radius: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    border: none;
    border-left: 3px solid rgba(255, 255, 255, 0.3);
    margin-left: 15px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0;
  }
  
  .nav .sub-menu.active,
  .nav .children.active {
    max-height: 500px;
    padding: 8px 0;
  }
  
  .nav .sub-menu a,
  .nav .children a {
    padding: 10px 15px;
    font-size: 13px;
    border: none;
    color: #fff;
  }
  
  .nav .sub-menu a:hover,
  .nav .children a:hover {
    background: rgba(255, 255, 255, 0.15);
    padding-left: 20px;
  }*/
  
  /* Nested Dropdowns in Mobile 
  .nav .sub-menu .sub-menu,
  .nav .children .children {
    position: static;
    background: rgba(255, 255, 255, 0.1);
    margin-left: 15px;
    border-left: 3px solid rgba(255, 255, 255, 0.2);
  }
  
  .nav .sub-menu .sub-menu a,
  .nav .children .children a {
    padding: 8px 15px;
    font-size: 12px;
    color: #fff;
  }*/
  
  /* Dropdown Arrow for Mobile 
  .nav li.menu-item-has-children > a,
  .nav li.page_item_has_children > a {
    position: relative;
  }
  
  .nav li.menu-item-has-children > a::after,
  .nav li.page_item_has_children > a::after {
    content: "▸";
    right: 15px;
    font-size: 20px;
    color: #cc202c;
    transition: transform 0.3s ease;
  }
  
  .nav li.menu-item-has-children.active > a::after,
  .nav li.page_item_has_children.active > a::after {
    transform: translateY(-50%) rotate(90deg);
    color: #0d3ecf;
  }*/
  
  /* Slider */
  .slider {
    height: 40vh;
  }
  .overlay {
    padding: 20px;
  }
  .overlay h2 {
    font-size: 1.8rem;
  }
  .overlay p {
    font-size: 1rem;
  }
  .overlay .btn {
    padding: 10px 20px;
  }
  
  /* Customs section */
  .section-title {
    font-size: 2rem;
  }
  .content-box {
    flex-direction: column;
    gap: 30px;
  }
  .text-box {
    min-width: auto;
    text-align: justify;
  }
  
  /* Services section */
  .services-section {
    padding: 60px 20px;
  }
  .services-title {
    font-size: 2rem;
    margin-bottom: 40px;
  }
  .service-card {
    padding: 30px 20px;
  }
  
  /* About section */
  .about-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }
  
  /* Features section */
  .features-title {
    font-size: 1.8rem;
    margin-bottom: 40px;
  }
  
  /* Clients section */
  .clients {
    padding: 50px 5%;
  }
  .clients .section-title h2 {
    font-size: 1.8rem;
  }
  .client-logo {
    flex: 0 0 200px;
  }
  
  /* Footer */
  .footer {
    padding: 40px 5% 15px;
  }
}

@media (max-width: 576px) {
  .logo-box img {
    height: 70px;
  }
  .btnq {
    padding: 10px 15px;
    font-size: 12px;
  }
  .slider {
    height: 35vh;
  }
  .overlay h2 {
    font-size: 1.5rem;
  }
  .prev, .next {
    font-size: 1.5rem;
    padding: 8px;
  }
  .section-title {
    font-size: 1.8rem;
  }
  .call-box {
    padding: 25px 15px;
    margin-left: 8%;
  }
  .call-box h2 {
    font-size: 1.5rem;
  }
  .services-title {
    font-size: 1.6rem;
  }
  .services-container {
    gap: 20px;
  }
  .service-card {
    padding: 25px 15px;
  }
  .icon-box {
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
  }
  .service-title {
    font-size: 1.2rem;
  }
  .about-title, .features-title {
    font-size: 1.5rem;
  }
  .clients .section-title h2 {
    font-size: 1.5rem;
  }
  .client-logo {
    flex: 0 0 150px;
  }
  .client-logo img {
    max-width: 120px;
  }
  .footer-col h4 {
    font-size: 1.1rem;
  }
}

@media (max-width: 400px) {
  .top-bar {
    font-size: 12px;
  }
  .top-right .social a {
    margin-left: 8px;
  }
  .header {
    padding: 10px 15px;
  }
  .logo-box img {
    height: 60px;
  }
  .slider {
    height: 30vh;
  }
  .overlay {
    padding: 15px;
  }
  .overlay h2 {
    font-size: 1.2rem;
  }
  .overlay p {
    font-size: 0.9rem;
  }
  .section-title {
    font-size: 1.6rem;
  }
  .services-title {
    font-size: 1.4rem;
  }
  .about-title, .features-title {
    font-size: 1.3rem;
  }
  .client-logo {
    flex: 0 0 120px;
  }
}

/* Inner Banner Styles */
.inner-banner {
    position: relative;
    background-size: cover;
    background-position: center;
    height: 410px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.inner-banner .overlay2 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.6);
    padding: 20px 30px;
    border-radius: 6px;
    display: inline-block;
    width: auto;
    max-width: 90%;
    white-space: nowrap;
    text-align: center;
}

.inner-banner .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.inner-banner .page-title {
    color: #fff;
    font-size: 36px;
    font-weight: 600;
    text-transform: uppercase;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.2;
}

.inner-banner1 {
    position: relative;
    background-size: cover;
    background-position: center;
    height: 410px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.inner-banner1 .overlay1 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.6);
    padding: 20px 30px;
    border-radius: 6px;
    display: inline-block;
    width: auto;
    max-width: 90%;
    white-space: nowrap;
    text-align: center;
}

.inner-banner1 .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.inner-banner1 .page-title {
    color: #fff;
    font-size: 36px;
    font-weight: 600;
    text-transform: uppercase;
    margin: 0;
    line-height: 1.2;
}

/* Responsive Inner Banner Styles */
@media (max-width: 1200px) {
    .inner-banner,
    .inner-banner1 {
        height: 360px;
    }
    
    .inner-banner .page-title,
    .inner-banner1 .page-title {
        font-size: 32px;
    }
    
    .inner-banner .overlay2,
    .inner-banner1 .overlay1 {
        padding: 18px 28px;
        max-width: 85%;
    }
}

@media (max-width: 992px) {
    .inner-banner,
    .inner-banner1 {
        height: 320px;
    }
    
    .inner-banner .page-title,
    .inner-banner1 .page-title {
        font-size: 28px;
    }
    
    .inner-banner .overlay2,
    .inner-banner1 .overlay1 {
        padding: 16px 25px;
        max-width: 80%;
    }
}

@media (max-width: 768px) {
    .inner-banner,
    .inner-banner1 {
        height: 280px;
    }
    
    .inner-banner .page-title,
    .inner-banner1 .page-title {
        font-size: 24px;
        white-space: normal;
        display: block;
    }
    
    .inner-banner .overlay2,
    .inner-banner1 .overlay1 {
        padding: 15px 20px;
        max-width: 85%;
        white-space: normal;
        min-width: auto;
    }
}

@media (max-width: 576px) {
    .inner-banner,
    .inner-banner1 {
        height: 240px;
    }
    
    .inner-banner .page-title,
    .inner-banner1 .page-title {
        font-size: 20px;
        line-height: 1.3;
    }
    
    .inner-banner .overlay2,
    .inner-banner1 .overlay1 {
        padding: 12px 18px;
        max-width: 90%;
        white-space: normal;
    }
}

@media (max-width: 480px) {
    .inner-banner,
    .inner-banner1 {
        height: 200px;
    }
    
    .inner-banner .page-title,
    .inner-banner1 .page-title {
        font-size: 18px;
        line-height: 1.2;
    }
    
    .inner-banner .overlay2,
    .inner-banner1 .overlay1 {
        padding: 10px 15px;
        max-width: 85%;
        white-space: normal;
    }
}

@media (max-width: 360px) {
    .inner-banner,
    .inner-banner1 {
        height: 180px;
    }
    
    .inner-banner .page-title,
    .inner-banner1 .page-title {
        font-size: 16px;
        line-height: 1.2;
    }
    
    .inner-banner .overlay2,
    .inner-banner1 .overlay1 {
        padding: 8px 12px;
        max-width: 80%;
        white-space: normal;
    }
}

/* Additional overlay-specific fixes */
.inner-banner .overlay2,
.inner-banner1 .overlay1 {
    box-sizing: border-box;
}

/* Ensure the overlay doesn't overflow on very small screens */
@media (max-width: 320px) {
    .inner-banner .overlay2,
    .inner-banner1 .overlay1 {
        max-width: 95%;
        padding: 6px 10px;
    }
    
    .inner-banner .page-title,
    .inner-banner1 .page-title {
        font-size: 15px;
    }
}

/* Handle very long text gracefully */
.inner-banner .page-title,
.inner-banner1 .page-title {
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Improve overlay positioning for edge cases */
@media (max-width: 768px) {
    .inner-banner .overlay2,
    .inner-banner1 .overlay1 {
        left: 50%;
        transform: translateX(-50%);
        top: 50%;
        transform: translate(-50%, -50%);
        width: fit-content;
        min-width: min-content;
    }
}

/* ---------- Process steps ---------- */
    .process-step {
      display: flex;
      gap: 15px; /* Increased gap */
      align-items: flex-start;
      margin: 15px 0; /* Increased margin */
      padding-left: 25px; /* Increased left padding */
    }
    .process-step .icon {
      min-width: 32px; /* Slightly larger */
      height: 32px;
      background: #0A63B8;
      color: #fff;
      border-radius: 50%;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-weight: 700;
      font-size: 16px; /* Slightly larger */
      box-shadow: 0 2px 5px rgba(10,99,184,0.3); /* Added shadow */
    }
    .process-step .text { 
      font-size: 15px; 
      color: #111; 
      line-height: 1.6; /* Better line height */
    }

/* --- FIX MAIN MENU CLICKABILITY --- */

.nav > ul > li {
  z-index: 11;
}

.nav > ul > li > a {
  pointer-events: auto;
  position: relative;
  z-index: 20;
}

/* enable submenu interaction */
.nav .sub-menu,
.nav .children {
  pointer-events: auto !important;
}

  /* Gallery */
    .gallery {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 15px;
      margin: 30px 0;
    }

    .gallery-item {
      position: relative;
      overflow: hidden;
      border-radius: 6px;
      box-shadow: var(--shadow);
    }

    .gallery-item img {
      width: 100%;
      height: 200px;
      object-fit: cover;
      transition: transform 0.3s ease;
    }

    .gallery-item:hover img {
      transform: scale(1.05);
    }

/* Responsive */
    @media (max-width: 992px) {
      .gallery {
        grid-template-columns: 1fr 1fr;
      }
     
    }

    @media (max-width: 600px) {
      .gallery {
        grid-template-columns: 1fr;
      }
      
    }


/* Gallery */
    .gallery1 {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 15px;
      margin-top: 15px;
    }

    .gallery-item1 img {
      width: 100%;
      border-radius: 6px;
      box-shadow: var(--shadow);
      transition: transform 0.3s ease;
    }

    .gallery-item img:hover {
      transform: scale(1.03);
    }

 @media (max-width: 768px) {
      .gallery1 { grid-template-columns: 1fr; }
    }
