/* Global Styles */
:root {
  --primary-color: #003da5;
  --secondary-color: #babcbe;
  --dark-color: #1a1f2c;
  --light-color: #f5f7f9;
  --gray-color: #8e9196;
  --white-color: #ffffff;
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

body {
  font-family: "Roboto", sans-serif;
  color: var(--dark-color);
  line-height: 1.7;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.3;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: #002b73;
}

.btn {
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  border-radius: 4px;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: #002b73;
  border-color: #002b73;
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: var(--white-color);
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
}

.title-underline {
  height: 4px;
  width: 70px;
  background-color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.title-underline.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* Navigation */
.navbar {
  padding: 0.5rem 0;
  transition: var(--transition);
}

.logo {
  height: 80px;
  width: 80px; /* Make logo square */
  object-fit: contain; /* Ensure logo fits properly */
}

.navbar-nav .nav-link {
  padding: 0.5rem 1rem;
  font-weight: 500;
  color: var(--dark-color);
  margin-right: 18px;
  font-size: 18px; /* added later */
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover {
  color: var(--primary-color);
}

.navbar-toggler {
  border: none;
  padding: 0;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* Hero Section */
.hero-section {
  height: 100vh;
  min-height: 600px;
  background-size: cover;
  background-position: center;
  position: relative;
  color: var(--white-color);
  display: flex;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.3);
}

.hero-section h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.hero-buttons .btn {
  padding: 0.75rem 2rem;
}

/* Page Header */
.page-header {
  background-color: var(--primary-color);
  color: var(--white-color);
  /* padding: 7rem 0 4rem; */
  padding: 5rem 0 4rem;
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.breadcrumb {
  background-color: transparent;
  justify-content: center;
  margin-bottom: 0;
}

.breadcrumb-item,
.breadcrumb-item a {
  color: rgba(255, 255, 255, 0.8);
}

.breadcrumb-item.active {
  color: var(--white-color);
}

.breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.5);
}

/* About Section */
.about-snippet {
  padding: 5rem 0;
}

.about-card {
  background-color: var(--white-color);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.about-card:hover {
  transform: translateY(-5px);
}

.about-card .icon-wrapper {
  font-size: 2.5rem;
  color: var(--primary-color);
}

/* Services Section */
.service-card {
  background-color: var(--white-color);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center; /* added later */
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-card .icon-wrapper {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1.25rem;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.service-link {
  color: var(--primary-color);
  font-weight: 500;
  display: inline-block;
  margin-top: 1rem;
}

.service-link i {
  transition: var(--transition);
}

.service-link:hover i {
  transform: translateX(5px);
}

/* Industries Section */
.industry-card {
  background-color: var(--white-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 100%;
  transition: var(--transition);
}

.industry-card:hover {
  transform: translateY(-5px);
}

.industry-image {
  height: 200px;
  object-fit: cover;
  width: 100%;
}

.industry-content {
  padding: 1.5rem;
}

.industry-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

/* News Section */
.news-card {
  background-color: var(--white-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
}

.news-card:hover {
  transform: translateY(-5px);
}

.news-image {
  position: relative;
}

.news-image img {
  height: 220px;
  object-fit: cover;
  width: 100%;
}

.val-image img {
  height: 360px;
  object-fit: cover;
  width: 100%;
}

.news-date {
  position: absolute;
  left: 20px;
  bottom: -20px;
  background-color: var(--primary-color);
  color: var(--white-color);
  padding: 0.5rem;
  border-radius: 4px;
  text-align: center;
  min-width: 60px;
}

.news-date .day {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.news-date .month {
  display: block;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
}

.news-content {
  padding: 2rem;
  text-align: center; /* added later */
}

.news-content h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.news-link {
  color: var(--primary-color);
  font-weight: 500;
}

.news-link i {
  transition: var(--transition);
}

.news-link:hover i {
  transform: translateX(5px);
}

/* Clients Section */
.client-slider {
  padding: 1rem 0;
  overflow: hidden; /* Ensure content doesn't spill out */
  position: relative;
}

.client-logos {
  display: flex;
  align-items: center;
  white-space: nowrap;
  transition: transform 0.3s ease;
}

.client-logo {
  padding: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 150px; /* Ensure fixed width for proper scrolling */
  flex-shrink: 0; /* Prevent logo from shrinking */
}

.client-logo img {
  max-height: 80px;
  max-width: 100%;
  opacity: 0.7;
  transition: var(--transition);
  filter: grayscale(100%);
}

.client-logo:hover img {
  opacity: 1;
  filter: grayscale(0);
}

/* CTA Section */
.cta-section {
  background-color: var(--primary-color);
  color: var(--white-color);
}

/* Footer */
.footer {
  background-color: #1a1f2c;
  color: rgba(255, 255, 255, 0.8);
}

.footer-logo {
  height: 150px;
  width: auto;
}

.footer h4 {
  color: var(--white-color);
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
}

.footer-links a:hover {
  color: var(--white-color);
  padding-left: 5px;
}

.footer-contact {
  list-style: none;
  padding: 0;
}

.footer-contact li {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: flex-start;
}

.footer-contact li i {
  margin-right: 10px;
  color: var(--primary-color);
}

.social-icons {
  display: flex;
  gap: 10px;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white-color);
  border-radius: 50%;
  transition: var(--transition);
}

.social-icon:hover {
  background-color: var(--primary-color);
  color: var(--white-color);
}

.footer-bottom-link {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.footer-bottom-link:hover {
  color: var(--white-color);
}

/* About Page Styles */
.company-overview {
  padding: 5rem 0;
}

.team-card {
  background-color: var(--white-color);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.team-card:hover {
  transform: translateY(-5px);
}

.team-image img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border: 5px solid rgba(0, 61, 165, 0.1);
}

.team-position {
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

/* Timeline */
.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline:before {
  content: "";
  position: absolute;
  height: 100%;
  width: 2px;
  background-color: var(--primary-color);
  left: 50%;
  transform: translateX(-50%);
}

.timeline-item {
  margin-bottom: 2rem;
  position: relative;
}

.timeline-badge {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--primary-color);
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  z-index: 1;
}

.timeline-panel {
  width: calc(50% - 40px);
  float: left;
  padding: 1.5rem;
  position: relative;
  background-color: var(--white-color);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.timeline-item:nth-child(even) .timeline-panel {
  float: right;
}

.timeline-item:after {
  content: "";
  display: table;
  clear: both;
}

.timeline-heading h4 {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

/* Services Page Styles */
.service-card-detailed {
  background-color: var(--white-color);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.service-features {
  list-style: none;
  padding-left: 0;
  margin-top: 1rem;
}

.service-features li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.service-features li:last-child {
  border-bottom: none;
}

.service-detail-card {
  background-color: var(--white-color);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.service-detail-list {
  padding-left: 1.5rem;
}

.service-detail-list li {
  margin-bottom: 0.5rem;
}

.process-step {
  text-align: center;
  position: relative;
}

.process-number {
  display: inline-block;
  width: 60px;
  height: 60px;
  line-height: 60px;
  background-color: var(--primary-color);
  color: var(--white-color);
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.process-step h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.feature-list {
  padding-left: 1.5rem;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}

.feature-list li:before {
  content: "\2022";
  color: var(--primary-color);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* News Page Styles */
.featured-news-card {
  background-color: var(--white-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.news-date-featured {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(--primary-color);
  color: var(--white-color);
  border-radius: 4px;
  font-weight: 500;
}

.news-grid-card {
  background-color: var(--white-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 100%;
}

.news-meta {
  color: var(--gray-color);
  font-size: 0.875rem;
}

.news-meta i {
  margin-right: 5px;
}

.newsletter-form .form-control {
  height: 50px;
  border-radius: 4px 0 0 4px;
}

.newsletter-form .btn {
  border-radius: 0 4px 4px 0;
}

/* Contact Page Styles */
.contact-card {
  background-color: var(--white-color);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact-form-card {
  background-color: var(--white-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  width: 100%;
}

.contact-form-info {
  background-color: var(--primary-color);
  color: var(--white-color);
  padding: 2.5rem;
}

.social-icon-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--white-color);
  border-radius: 50%;
  margin-right: 10px;
  transition: var(--transition);
}

.social-icon-light:hover {
  background-color: var(--white-color);
  color: var(--primary-color);
}

.location-card {
  background-color: var(--white-color);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.location-card h3 {
  color: var(--primary-color);
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
}

.location-list {
  list-style: none;
  padding-left: 0;
}

.location-list li {
  margin-bottom: 1.5rem;
}

.location-list li:last-child {
  margin-bottom: 0;
}

/* Certification Styles */
.certification-card {
  background-color: var(--white-color);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  height: 100%;
}

.certification-card img {
  max-height: 100px;
  margin-bottom: 1rem;
}

/* Responsive Styles */
@media (max-width: 991.98px) {
  .hero-section {
    height: 80vh;
  }

  .timeline:before {
    left: 40px;
  }

  .timeline-badge {
    left: 40px;
  }

  .timeline-panel {
    width: calc(100% - 90px);
    float: right !important;
  }

  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 767.98px) {
  .hero-section h1 {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .navbar {
    padding: 0.75rem 0;
  }

  .navbar-collapse {
    background-color: var(--white-color);
    padding: 1rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .client-logo {
    min-width: 120px;
  }
}

@media (max-width: 575.98px) {
  .hero-section h1 {
    font-size: 2rem;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .client-logo {
    min-width: 100px;
  }
}

/* Drop down Menu */
/* --- Custom Navbar Dropdown Styles --- */
.navbar .dropdown-menu {
  border-radius: 8px;
  box-shadow: var(--shadow);
  border: none;
  padding: 0.5rem 0;
  min-width: 220px;
  background-color: var(--white-color);
}

.navbar .dropdown-item {
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  color: var(--dark-color);
  transition: var(--transition);
  border-bottom: 1px solid #f0f0f0;
  background-color: transparent;
}

.navbar .dropdown-item:last-child {
  border-bottom: none;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
  background-color: var(--primary-color);
  color: var(--white-color);
  padding-left: 2rem;
}

.navbar .dropdown-divider {
  margin: 0.25rem 0;
  border-top: 1px solid var(--secondary-color);
}

.map-container {
  border-left: none;
}

/* Desktop only: add left border */
/*
@media (min-width: 992px) {
  .map-container {
    border-left: 23px solid #f8f9fa;
  }
}
  */

/* ========= Desktop: Hanging Logo Effect ========= */
@media (min-width: 992px) {
  /* Logo container pulled down and layered above */
  .navbar .logo-container {
    position: absolute;
    top: -28px; /* Adjust this to hang lower/higher */
    /* left: 0; */
    z-index: 10;
    /* text-align: center; */
    background-color: #ffffff; /* Optional: background color for logo container */
    padding: 5px;
    width: auto;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
  }

  /* Anchor for positioning */
  .navbar .container {
    position: relative;
    display: flex;
    align-items: flex-start;
  }

  /* Nav links aligned top right */
  .navbar-collapse {
    margin-left: auto;
  }

  /* Optional: Control logo size */
  .navbar .logo {
    height: 120px;
    width: auto;
    float: center; /* Center the logo */
  }
  .navbar {
    height: 106px; /* as before */
    width: auto;
  }

  .navbar .logo-container a.navbar-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
  }
}

/* ========= Mobile: Reset for standard layout ========= */
@media (max-width: 991.98px) {
  .navbar .logo-container {
    position: static;
    top: auto;
    z-index: auto;
    margin-top: 0;
    margin-bottom: 0;
  }

  .navbar .logo {
    height: auto;
    max-height: 60px;
  }
}

/* for aligning hamburger menu icon */
@media (max-width: 991.98px) {
  .navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .navbar-toggler {
    margin-top: 0;
    margin-bottom: 0;
    align-self: center; /* ensures it centers inside the flex container */
  }

  .navbar .navbar-brand,
  .navbar .logo-container {
    display: flex;
    align-items: center;
  }

  .navbar .logo {
    max-height: 50px; /* adjust to your mobile logo size */
  }
}

/* Scroll Indicator */
/* .scroll-indicator {
  position: absolute;
  bottom: var(--spacing-xl);
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.scroll-arrow {
  width: 24px;
  height: 24px;
  border-right: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  transform: rotate(45deg);
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
} */

.text-justify {
  text-align: justify;
}

.scroll-down {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 30px;
  cursor: pointer;
  text-decoration: none;
  z-index: 10;
}

.scroll-down span {
  display: block;
  width: 20px;
  height: 20px;
  border-bottom: 2px solid white;
  border-right: 2px solid white;
  transform: rotate(45deg);
  margin: 0 auto;
  animation: bounce 1.5s infinite;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0) rotate(45deg);
  }
  40% {
    transform: translateY(10px) rotate(45deg);
  }
  60% {
    transform: translateY(5px) rotate(45deg);
  }
}
