body {
  font-family: "Cerebri Sans", sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f9;
  color: #333;
  overflow-x: hidden;
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translate(-50px, -50%);
  }

  to {
    opacity: 1;
    transform: translate(0, -50%);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

.container-b {
  max-width: 1140px;
  /* Adjust to match your site's container width */
  margin: 0 auto;
  padding: 0 15px;
}

.carousel-caption h1 {
  font-size: clamp(0.5rem, 1vw, 0.9rem);
  line-height: 1.2;
  margin-bottom: 12px;
  font-weight: 400;
  color: #ffffff;
  animation: fadeInUp 0.5s ease-out 0.6s both;
  max-width: 700px;
}

.carousel-caption h6 {
  font-size: clamp(0.6rem, 1.4vw, 1.1rem);
  line-height: 1.3;
  margin-bottom: 15px;
  font-weight: 400;
  color: #ffffff;
  animation: fadeInUp 0.5s ease-out 0.6s both;
}

.carousel-caption .btn {
  animation: fadeInUp 0.5s ease-out 0.9s both;
}

.carousel-caption .btn-primary {
  background-color: #AA2023;
  border: none;
  padding: 10px 20px;
  border-radius: px;
  font-size: 16px;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.carousel-caption .btn-primary-outline {
  border: 1px solid white;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 16px;
  transition: transform 0.3s ease, background-color 0.3s ease;
  color: white;
}

.carousel-caption .btn:hover {
  background-color: #a1a1a1;
}

*/

/* Container for maintaining consistent margins */
.container-fluid {
  width: auto;
  margin: 0 auto;
  padding: 0 15px;
}

.carousel-caption {
  position: absolute;
  left: 50%;
  top: 70%;
  transform: translate(-50%, -50%) !important;
  width: 100%;
  max-width: 1200px;
  text-align: left;
  padding: 20px;
  z-index: 2;
  animation: fadeInLeft 1s ease-out;
}

.carousel-item img {
  width: 100%;
  height: 100vh;
  /* Ensures full-screen height */
  object-fit: cover;
  /* Ensures the image covers the entire section */
}

.container-fluid {
  padding: 0;
}

.carousel-section {
  position: relative;
  width: 100%;
  height: 100vh;
  /* Make sure it fills the screen */
  overflow: hidden;
}

.carousel-caption h1 {
  font-size: clamp(0.5rem, 1vw, 0.9rem);
  line-height: 1.2;
  margin-bottom: 12px;
  font-weight: 400;
  color: #ffffff;
  animation: fadeInUp 0.5s ease-out 0.6s both;
}

.carousel-caption h6 {
  font-size: clamp(0.6rem, 1.4vw, 1.1rem);
  line-height: 1.3;
  margin-bottom: 15px;
  font-weight: 400;
  color: #ffffff;
  animation: fadeInUp 0.5s ease-out 0.6s both;
}

.carousel-caption .btn {
  animation: fadeInUp 0.5s ease-out 0.9s both;
}

/* .carousel-caption .btn-primary {
    background-color: #AA2023;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    transition: transform 0.3s ease, background-color 0.3s ease;
} */

.carousel-caption .btn-primary-outline {
  border: 1px solid white;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 16px;
  transition: transform 0.3s ease, background-color 0.3s ease;
  color: white;
}

.carousel-caption .btn:hover {
  background-color: #a1a1a1;
}

/* Responsive adjustments */
/* @media (max-width: 1200px) {
    .carousel-caption-inner {
        left: 5%;
        width: 60%;
    }
} */

@media (max-width: 768px) {
  .carousel-caption-inner {
    left: 0;
    width: 90%;
  }
}

.carousel-caption .btn-primary-outline:hover {
  background-color: #AA2023;
  border: none;
}

/* Small Mobile Viewport */
@media screen and (max-width: 480px) {
  .carousel-caption {
    top: 45%;
  }

  .carousel-caption-inner {
    width: 90%;
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translate(-50px, -50%);
  }

  to {
    opacity: 1;
    transform: translate(0, -50%);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

/* Responsive adjustments */

.carousel-inner img {
  width: 100%;
  height: 100vh;
  object-fit: cover;
  margin: 0;
  /* Remove margin */
}

.carousel-item {
  height: 100vh;
  /* Ensure carousel items take up full screen height */
}

.carousel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.87);
  z-index: 1;
}

/* Brand Button Theme Overrides */
:root {
  --bs-primary: #AA2023;
  --bs-primary-rgb: 170, 32, 35;
}

.text-primary { color: #AA2023 !important; }
.bg-primary { background-color: #AA2023 !important; }
.border-primary { border-color: #AA2023 !important; }
.btn-primary {
  background-color: #AA2023;
  border-color: #AA2023;
  color: #fff;
}
.btn-primary:hover,
.btn-primary:focus {
  background-color: #AA2023;
  border-color: #AA2023;
  color: #fff;
}

.btn-outline-primary {
  color: #AA2023;
  border-color: #AA2023;
}
.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-color: #AA2023;
  border-color: #AA2023;
  color: #fff;
}

/* Ensure primary buttons stay red inside carousel on hover */
.carousel-caption .btn-primary:hover {
  background-color: #AA2023;
  border-color: #AA2023;
  color: #fff;
}

/* Success variants left unchanged to keep semantic green styling */

.b-text {
  font-size: small;
  font-weight: 400;
  text-align: left !important;
}

.bg-orange {
  background-color: #AA2023;
  color: white;
}

.border-orange {
  border: 1px solid #AA2023;
}

.carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  border-radius: 50px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

/* .carousel-indicators {
    display: flex;
    flex-direction: column;
    position: absolute;
    left: 10%;
    top: 80%;
    transform: translateY(-50%);
    margin: 0;
    gap: 1.5rem;
    z-index: 3;
} */

.carousel-indicators [data-bs-target]::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: #AA2023;
  transition: height 0.3s ease;
}

.carousel-indicators [data-bs-target].active {
  background-color: transparent;
}

.carousel-indicators [data-bs-target].active::before {
  height: 100%;
}

/* Hover effect */
.carousel-indicators [data-bs-target]:hover {
  transform: scale(1.1);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .carousel-indicators {
    left: 10px;
    gap: 1rem;
  }

  .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
  }
}

@media (max-width: 480px) {
  .carousel-indicators {
    left: 5px;
  }

  .carousel-indicators [data-bs-target] {
    height: 20px;
  }
}

.section-title {
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  color: #AA2023;
  margin: 20px 0;
  text-transform: uppercase;
}

/* Left-align the OUR THOUGHT section title */
#our-thought .section-title {
  text-align: center;
}

.social-icon {
  font-size: 10px;
  color: #ffffff;
  text-decoration: none;
}

.social-icon:hover {
  color: #ffffff;
}

.footer p {
  margin-bottom: 10px;
  font-size: 12px;
}

.footer {
  background-color: #333;
  color: #fff;
  padding: 20px 0;
}

.footer h5 {
  font-size: 24px;
  margin-bottom: 10px;
}

.footer a {
  color: #ffffff;
  text-decoration: none;
}
.contact-box-title {
  font-size: 16px;
  font-weight: 600;
}
.footer a:hover {
  text-decoration: underline;
}

/*  */
.card-container {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease-in-out;
}

.service-card img {
  transition: transform 0.3s ease-in-out;
}

.service-card:hover img {
  transform: scale(1.05);
}

.service-card:hover .card-description {
  opacity: 1;
  visibility: visible;
}

.card-description {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 50px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.row.text-center img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.row.text-center img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* .footer .row {
    align-items: center;
} */
/* .text-end{
    margin-top: 45px;
}
.footer .col-md-6.text-end {
    text-align: right;
} */

.counter {
  font-weight: 500;
  font-size: 150px;
}

.fw-150 {
  font-weight: 500;
  font-size: 150px;
}

@media (max-width: 768px) {
  .navbar-nav {
    text-align: center;
  }

  .footer .col-md-6.text-end {
    text-align: left;
    margin-top: 20px;
  }

  .carousel-inner {
    width: 100%;
    height: 100%;
  }

  .carousel-caption h5 {
    font-size: 28px;
  }

  .carousel-caption p {
    font-size: 16px;
  }

  .card-description {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 50px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .row.text-center img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  }
}

@media (max-width: 768px) {
  .carousel-caption h1 {
    font-size: 2rem;
  }

  .carousel-caption p {
    font-size: 1rem;
  }

  .carousel-caption {
    bottom: 5%;
    padding: 5px 10px;
  }
}

@media (max-width: 480px) {
  .carousel-caption h1 {
    font-size: 1.5rem;
  }

  .carousel-caption p {
    font-size: 0.9rem;
  }

  .carousel-caption button {
    font-size: 0.9rem;
    padding: 8px 15px;
  }
}

.navbar-nav {
  margin-left: auto;
  font-size: 14px;
}

.nav-link.active {
  position: relative;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  height: 1px;
  background-color: transparent;
}

.carousel-control-prev,
.carousel-control-next {
  width: 5%;
}

.button:hover {
  background-color: #a1a1a1;
}

@media (max-width: 768px) {
  .button {
    padding: 8px 30px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .button {
    padding: 6px 25px;
    font-size: 12px;
  }
}

/* Card Styling */
.card-custom {
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  color: rgb(240, 240, 240);
  box-shadow: 0 10px 30px 5px rgba(0, 0, 0, 0.2);
  text-align: center;
  height: 350px;
}

.card-custom::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 2, 120, 0.63);
  opacity: 0;
  transition: opacity 0.2s ease-out;
  z-index: 1;
}

.card-custom img {
  width: 100%;
  height: 1000px;
  object-fit: cover;
  opacity: 0.9;
  transition: opacity 0.2s ease-out;
}

.card-custom h2 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  transition: all 0.3s ease-out;
  font-weight: 600;
  text-transform: uppercase;
  z-index: 2;
  font-size: 0.9rem;
  width: 100%;
  text-align: center;
}

.card-custom:hover h2 {
  top: 25%;
  transform: translate(-50%, -50%);
}

.card-custom p {
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  width: 80%;
  transition: opacity 0.3s ease-out, top 0.3s ease-out;
  z-index: 2;
  text-align: center;
  font-size: 0.8rem;
  margin: 0;
}

.card-custom .button {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s ease-out;
  z-index: 2;
  width: auto;
  min-width: 150px;
}

.card-custom:hover::before {
  opacity: 1;
}

.card-custom:hover p,
.card-custom:hover .button {
  opacity: 1;
}

.card-custom:hover p {
  top: 50%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .card-custom {
    height: 300px;
  }

  .card-custom h2 {
    font-size: 0.8rem;
  }

  .card-custom p {
    font-size: 0.7rem;
  }

  .card-custom:hover h2 {
    top: 25%;
  }
}

@media (max-width: 576px) {
  .card-custom {
    height: 250px;
  }

  .card-custom h2 {
    font-size: 0.7rem;
  }

  .card-custom p {
    font-size: 0.6rem;
    width: 90%;
  }

  .card-custom .button {
    bottom: 10px;
    font-size: 0.8rem;
    min-width: 120px;
  }
}

/* Additional Styles for Animations and Services Section */
.fade-in {
  opacity: 0;
  animation: fadeIn 1s forwards;
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-100%);
  animation: slideInLeft 1s forwards;
}

.slide-in-right {
  opacity: 0;
  transform: translateX(100%);
  animation: slideInRight 1s forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes slideInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.services-section {
  background-color: #fff;
  padding: 60px 0;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.service-card i {
  font-size: 3rem;
  color: #AA2023;
  margin-bottom: 20px;
}

.service-card-content h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #AA2023;
  padding: 5px;
}

.service-card-content p {
  color: #555;
  text-align: left !important;
  font-size: 14px;
}
@media (max-width: 768px) {
  .service-card-content h3 {
    font-size: 1.2rem;
  }

  .service-card-content p {
    font-size: 0.9rem;
  }
}

.button {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 16px;
  transition: transform 0.3s ease, background-color 0.3s ease;
  background-color: #AA2023;
  color: #f9f9f9;
  text-decoration: none;
  text-align: center;
}

.button:hover {
  background-color: #ffffff;
}

/* Additional Styles for Award Section */
.award-section {
  padding: 4rem 2rem;
  color: #333;
}

.award-section .container {
  max-width: 1140px;
  margin: 0 auto;
}

.award-section .flex {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
  align-items: center;
}

.award-section .flex img {
  width: 40%;
  height: auto;
  border-radius: 0.5rem;
  transition: transform 0.3s ease;
}

.award-section .flex .content {
  flex: 1;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  animation: fadeInUp 1s ease-out;
}

.award-section .flex .content h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #AA2023;
}

.award-section .flex .content p {
  margin-bottom: 1rem;
  color: #555;
}

.award-section .flex .content button {
  align-self: start;
  padding: 0.5rem 1rem;
  background-color: #AA2023;
  color: white;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.award-section .flex .content button:hover {
  background-color: #333;
}

@media (max-width: 768px) {
  .award-section .flex {
    flex-direction: column;
  }

  .award-section .flex img {
    width: 100%;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

.award-section .card-content {
  text-align: center;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.award-section .card-content h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #AA2023;
  transition: color 0.3s ease;
}

.award-section .card-content p {
  color: #555;
  font-size: 1rem;
  margin-bottom: 20px;
  transition: color 0.3s ease;
}

.award-section .card-content:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.award-section .card-content:hover h3,
.award-section .card-content:hover p {
  color: #000;
}

.award-section .card-custom img {
  height: 300px;
  object-fit: cover;
}

/* Additional Styles for Our Footprint Section */
.footprint-section {
  padding: 2rem 2rem;
  background-color: #fff;
  color: #333;
}

.new-section {
  padding: 2rem 2rem;
  color: #333;
}

/* Force brand red for Services section links, titles, and icons */
.new-section a:not(.job-btn) {
  color: #AA2023;
}
.new-section a:not(.job-btn):hover,
.new-section a:not(.job-btn):focus {
  color: #AA2023;
}
.new-section .icon-card i {
  color: #AA2023 !important;
}
.new-section .service-card-content h3 {
  color: #AA2023 !important;
}

/* Career section title and job button text colors */
.current-openings-title {
  color: #6c757d; /* gray */
}
.job-btn .default-text { color: #fff; }
.job-btn .hover-text { color: #000; }

/* Insights cards styling */
.insight-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.insight-card:hover {
  transform: translateY(-4px);
}
.insight-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}
.insight-body {
  padding: 16px;
  text-align: left;
}
.insight-title {
  margin: 0 0 8px 0;
  color: #AA2023;
  font-size: 1.05rem;
  font-weight: 600;
}
.insight-text {
  color: #555;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

/* Reduce size of large image in OUR THOUGHT section */
.insight-hero {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 8px;
}
@media (min-width: 992px) {
  .insight-hero {
    height: 320px;
  }
}

.f-style {
  font-size: 24px;
}

.footprint-section .container {
  max-width: 1200px;
  margin: 20px auto;
  text-align: left;
}

.footprint-section .section-title {
  font-size: 1rem;
  font-weight: 400;
  color: #AA2023;
  margin-bottom: 40px;
  text-transform: uppercase;
}

.new-section .container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.new-section .section-title {
  font-size: 1rem;
  font-weight: 400;
  color: #AA2023;
  margin-bottom: 40px;
}

.footprint-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.footprint-card {
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  padding: 20px;
  width: 250px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.footprint-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.deal-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #AA2023;
  margin-bottom: 10px;
}

.deal-amount {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
}

.deal-type {
  font-size: 1rem;
  color: #777;
}

@media (max-width: 768px) {
  .footprint-card {
    width: 100%;
    margin-bottom: 20px;
  }
}

.footprint-card img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 10px;
}

/* Premium Our Taught section */
.premium-section {
  position: relative;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #f8fbff 0%, #eef5ff 50%, #ffffff 100%);
  overflow: hidden;
}

.premium-section::before,
.premium-section::after {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  filter: blur(60px);
  z-index: 0;
}

.premium-section::before {
  top: -80px;
  left: -80px;
  background: rgba(30, 115, 190, 0.15);
}

.premium-section::after {
  bottom: -80px;
  right: -80px;
  background: rgba(30, 115, 190, 0.08);
}

.premium-content {
  position: relative;
  z-index: 1;
}

.premium-image-wrap {
  position: relative;
  z-index: 1;
}

.premium-image-wrap img {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.premium-image-wrap:hover img {
  transform: scale(1.03);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.15);
}

@media (max-width: 991px) {
  .premium-section {
    padding: 3rem 1rem;
  }
  .premium-content {
    text-align: center;
  }
  .premium-image-wrap {
    margin-top: 1rem;
  }
}

/* ...existing code... */
@media (max-width: 768px) {
  .navbar-nav {
    text-align: left;
    padding-left: 30px;
  }

  .footer .col-md-6.text-end {
    text-align: left;
    margin-top: 20px;
  }

  .carousel-inner {
    width: 100%;
    height: auto;
  }

  .carousel-caption h5 {
    font-size: 1.5rem;
  }

  .carousel-caption p {
    font-size: 1rem;
  }

  .carousel-caption {
    bottom: 50%;
    padding: 5px 10px;
  }

  .service-card-content h3 {
    font-size: 1.2rem;
  }

  .service-card-content p {
    font-size: 0.9rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .section-content {
    padding: 0 20px;
    text-align: left !important;
  }

  .card-custom:hover h2,
  .card-custom.active h2 {
    bottom: 230px;
    transition: bottom 0.3s ease-out;
  }

  .card-custom h2 {
    font-size: 1.2rem;
  }

  .award-section .flex {
    flex-direction: column;
  }

  .award-section .flex img {
    width: 100%;
  }

  .award-section .card-content h3 {
    font-size: 1.2rem;
  }

  .award-section .card-content p {
    font-size: 0.9rem;
  }

  .footprint-section .section-title {
    font-size: 1rem;
  }

  .footprint-card {
    width: 100%;
  }
}

/* ...existing code... */
@media (min-width: 1200px) {
  .container {
    max-width: 1190px;
    margin: 0 auto;
  }
}

/* ...existing code... */

/* ...existing code... */
.nav-link {
  color: #6c757d !important;
  /* Default link color */
}

.nav-link:hover {
  color: #AA2023 !important;
  /* Color on hover */
}

/* Professional Navbar UI Design */
.navbar {
  padding: 1.2rem 0 !important;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.03) !important;
  box-shadow: none !important;
}

.navbar.navbar-scrolled {
  padding: 0.8rem 0 !important;
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06) !important;
}

.navbar-nav .nav-item {
  margin: 0 5px;
}

.navbar-nav .nav-link {
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  color: #333 !important;
  padding: 0.5rem 1.2rem !important;
  border-radius: 8px;
  position: relative;
  transition: all 0.3s ease !important;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #AA2023;
  transition: all 0.3s ease;
  transform: translateX(-50%);
  opacity: 0;
}

.navbar-nav .nav-link:hover {
  color: #AA2023 !important;
  background: rgba(170, 32, 35, 0.03);
}

.navbar-nav .nav-link:hover::after {
  width: 20px;
  opacity: 1;
}

.navbar-nav .nav-link.active {
  color: #AA2023 !important;
  font-weight: 600 !important;
}

.navbar-nav .nav-link.active::after {
  width: 30px;
  opacity: 1;
  bottom: 5px;
}

/* Mobile Toggler Refinement */
.navbar-toggler {
  border: none !important;
  padding: 0.5rem !important;
  background: rgba(0, 0, 0, 0.03) !important;
  border-radius: 10px !important;
}

.navbar-toggler:focus {
  box-shadow: none !important;
  background: rgba(170, 32, 35, 0.08) !important;
}

.navbar-toggler-icon {
  width: 1.2em !important;
  height: 1.2em !important;
}

/* Responsive Navbar Adjustments */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: #ffffff;
    margin-top: 1rem;
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
  }
  
  .navbar-nav .nav-item {
    margin: 8px 0;
  }
  
  .navbar-nav .nav-link {
    padding: 12px 20px !important;
  }
  
  .navbar-nav .nav-link:hover {
    transform: translateX(5px);
  }
  
  .navbar-nav .nav-link::after {
    display: none;
  }
}

/* Existing Professional Dropdown UI Design ... */

.section-title,
.section-content,
.carousel-caption,
.footer,
.service-card-content,
.card-custom h2,
.card-custom p,
.card-custom a,
.award-section .card-content h3,
.award-section .card-content p,
.footprint-card .deal-title,
.footprint-card .deal-amount,
.footprint-card .deal-type {
  font-family: "Cerebri Sans", sans-serif;
}

/* ...existing code... */
@media (max-width: 768px) {
  .award-section .card-custom {
    margin-bottom: 20px;
  }

  .award-section .card-custom img {
    height: auto;
    width: 100%;
  }

  .award-section .card-content h3 {
    font-size: 1.2rem;
  }

  .award-section .card-content p {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .award-section .card-content h3 {
    font-size: 1rem;
  }

  .award-section .card-content p {
    font-size: 0.8rem;
  }
}

/* ...existing code... */

/* ...existing code... */
/* Professional Dropdown UI Design */
.dropdown-menu {
  min-width: 320px !important;
  border-radius: 16px !important;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12) !important;
  border: 1px solid rgba(0, 0, 0, 0.04) !important;
  padding: 12px !important;
  margin-top: 15px !important;
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(10px);
}

.dropdown-item {
  padding: 12px 16px !important;
  border-radius: 12px !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative;
  overflow: hidden;
}

.dropdown-icon-wrapper {
  width: 42px;
  height: 42px;
  background: rgba(170, 32, 35, 0.06);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #AA2023;
  font-size: 1.25rem;
  transition: all 0.3s ease;
}

.dropdown-title {
  font-size: 14.5px;
  letter-spacing: -0.2px;
  transition: color 0.3s ease;
}

.dropdown-desc {
  font-size: 12px;
  opacity: 0.8;
  transition: color 0.3s ease;
}

.dropdown-item:hover {
  background-color: #AA2023 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(170, 32, 35, 0.2);
}

.dropdown-item:hover .dropdown-icon-wrapper {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  transform: scale(1.1);
}

.dropdown-item:hover .dropdown-title {
  color: #ffffff !important;
}

.dropdown-item:hover .dropdown-desc {
  color: rgba(255, 255, 255, 0.8) !important;
}

.dropdown-divider {
  border-top: 1px solid rgba(0, 0, 0, 0.05) !important;
  margin: 8px 0 !important;
}

.nav-item.dropdown:hover .dropdown-menu {
  display: block !important;
  animation: dropdownProfessionalFade 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes dropdownProfessionalFade {
  from {
    opacity: 0;
    transform: translateY(15px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 768px) {
  .dropdown-menu {
    opacity: 1 !important;
    /* Make visible */
    transform: translateY(0) !important;
    /* Move to original position */
  }
}

/* ...existing code... */

/* ...existing code... */
.card-content {
  text-align: center !important;
  /* Center the text */
}

.card-content h2,
.card-content a {
  text-align: center !important;
  /* Center align text */
}

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

/* Slider Container */
.slider-container {
  align-items: center;
  height: auto;
  min-height: 600px;
  position: relative;
  width: 100%;
  overflow: hidden;
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px;
  border-radius: 12px;
}

/* Cards Wrapper */
.card-wrapper {
  display: flex;
  transition: transform 0.5s ease;
}

/* Individual Card Styling */
.card {
  width: 280px;
  margin-right: 20px;
  background-color: #ffffff;
  text-align: left;
  padding: 15px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.card1 {
  width: 300px;
  margin-right: 20px;
  background-color: #ffffff;
  align-items: center;
  padding: 15px;
  flex-shrink: 0;
  /* Prevents shrinking */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card img {
  width: 100%;
  height: auto;
  /* border-bottom: 1px solid #ddd; */
}

.card h3 {
  font-size: 1.2em;
  margin: 10px 0;
  color: #333;
}

.card p {
  font-size: 0.8em;
  color: #666;
  margin-bottom: 20px;
  height: 50px;
}

/* Icon Section at the Bottom of Each Card */
.card-icons {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid #ddd;
  margin-top: auto;
}

.card-icon {
  font-size: 1.2em;
  color: #0073e6;
  cursor: pointer;
  transition: color 0.2s ease;
}

.card-icon:hover {
  color: #005bb5;
}

/* Clickable Icons Styling for Left and Right Navigation */
.icon-left,
.icon-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5em;
  cursor: pointer;
  color: #050505;
  transition: transform 0.2s ease;
  background-color: #fff;
  padding: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

.tex {
  text-align: center;
  margin: 0;
  padding-top: 10px;
}

.icon-left {
  left: 10px;
}

.icon-right {
  right: 10px;
}

/* Icon Hover Animation */
.icon-left:hover,
.icon-right:hover {
  transform: translateY(-50%) scale(1.2);
}

/* Responsive Styles */
@media (max-width: 768px) {
  .card {
    /*width: 100%;*/
    margin-right: 0;
    min-width: calc(100% - 320px);
    max-width: 100%;
  }
}

/* New section Closing*/
.t-center {
  align-items: center;
}

/* Navigation Icons */
.slider-navigation {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.slider-navigation button {
  background: none;
  border: none;
  font-size: 5px;
  cursor: pointer;
}

/* Media query for mobile view */
@media (max-width: 768px) {
  .slider {
    flex-wrap: nowrap;
    /* Prevent images from stacking */
  }

  .slide {
    flex: 0 0 90%;
    /* Full width in mobile view */
    padding: 10%;
  }
}

.slide.active {
  display: block;
  /* Show only active slide */
}

/* Add responsive adjustments */
@media screen and (max-width: 1024px) {
  .slider-container {
    min-height: 500px;
    padding: 15px;
  }
}

@media screen and (max-width: 768px) {
  .slider-container {
    min-height: 450px;
    padding: 10px;
  }
}

@media screen and (max-width: 480px) {
  .slider-container {
    min-height: 400px;
    padding: 10px;
  }
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-image: none !important;
  /* Remove background image */
}

/* ...existing code... */
/* .text-center {
    text-align: center !important;
} */
.text-justify {
  text-align: left !important;
}
/* .justify{
    text-align: justify !important;
} */

.btext-centerbottom {
  text-align: center !important;
}

.d-flex {
  display: flex !important;
}

.align-items-center {
  align-items: center !important;
}

.justify-content-center {
  justify-content: center !important;
}

.button {
  display: block;
  width: 100%;
  padding: 10px 0;
  border-radius: 5px;
  font-size: 16px;
  transition: transform 0.3s ease, background-color 0.3s ease;
  background-color: #AA2023;
  color: white;
  text-decoration: none;
  text-align: center;
  margin-top: 10px;
}

.button:hover {
  background-color: #a1a1a1;
}

@media (max-width: 1200px) {
  .button {
    padding: 9px 0;
    font-size: 15px;
  }
}

@media (max-width: 1024px) {
  .button {
    padding: 8px 0;
    font-size: 14px;
  }
}

@media (max-width: 1024px) and (max-height: 600px) {
  .button {
    padding: 7px 0;
    font-size: 13px;
  }

  .section-title {
    margin-top: -20px;
    /* Move the title up */
  }
}

@media (max-width: 1366px) and (max-height: 768px) {
  .section-title {
    margin-top: -10px;
    /* Move the title up */
  }
}

@media (max-width: 992px) {
  .button {
    padding: 8px 0;
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  .button {
    padding: 7px 0;
    font-size: 13px;
  }
}

@media (max-width: 576px) {
  .button {
    padding: 6px 0;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .button {
    padding: 5px 0;
    font-size: 11px;
  }
}

/* ...existing code... *
            /* ...existing code... */

/* ...existing code... */
@media (min-width: 768px) {
  .subsidiaries-section .col-lg-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

/* ...existing code... */

/* ...existing code... */
.card-custom {
  /* ...existing code... */
  height: 350px;
  /* Reduce the height of the cards */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-content {
  /* ...existing code... */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  /* Ensure the content takes full height */
}

.button {
  /* ...existing code... */
  margin-top: auto;
  /* Push the button to the bottom */
}

/* ...existing code... */

/* ...existing code... */
.custom-col {
  width: 50%;
  height: auto;
}

@media (max-width: 768px) {
  .custom-col {
    width: 100%;
    height: auto;
  }
}

/* ...existing code... */

/* ...existing code... */
.custom-col {
  display: flex;
  justify-content: center;
  align-items: center;
  /* Center the card vertically and horizontally */
}

/* ...existing code... */

/* ...existing code... */
.custom {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 550px;
  margin: 0 auto;
}

/* ...existing code... */
/* ...existing code... */

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.service-card .button:hover {
  background-color: #a1a1a1;
}

@media (max-width: 768px) {
  .service-card {
    width: 100%;
    margin-right: 0;
  }
}

/* ...existing code... */

/* ...existing code... */
.card-custom {
  width: 100%;
  /* Default width */
  max-width: 1200px;
  /* Maximum width */
  margin: 0 auto;
  /* Center align */
}

@media (max-width: 768px) {
  .card-custom {
    width: 100%;
    /* Full width on smaller screens */
  }
}

/* ...existing code... */
/* Carousel overlay improvements */
.carousel-overlay {
  background: linear-gradient(rgba(0, 0, 0, 0.041), rgb(0, 0, 0));
}

/* Improve image loading */
.carousel-item img {
  will-change: transform;
  backface-visibility: hidden;
}

/* Smoother transitions */
.carousel-item {
  transition: transform 0.6s ease-in-out;
}

/* Remove the existing margin-top for carousel-captain */
#carousel-captain {
  margin-top: 0;
  /* Remove the negative margin */
}

/* Responsive adjustments */
/* @media screen and (max-width: 768px) {
    .carousel-caption {
        width: 90%;
        padding: 15px;
    }
} */

@media screen and (max-width: 480px) {
  .carousel-caption {
    width: 95%;
    padding: 10px;
  }
}

/* High-resolution screens */
@media screen and (min-width: 2560px) {
  .carousel-caption {
    max-width: 1800px;
  }
}

.navbar-collapse.show {
  display: block;
}

@media (max-width: 991.98px) {
  .navbar-nav {
    opacity: 1 !important;
    transform: none !important;
  }

  /* Remove transition delays */
  .navbar-nav .nav-item {
    transition: none !important;
    animation: none !important;
  }
}

/* Dropdown Divider */
.dropdown-divider {
  height: 1px !important;
  margin: 0.5rem 0 !important;
  background-color: #e9ecef !important;
}

/* Award section responsive styles */
.award-card {
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  /* height: 100%; */
}

.award-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.award-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* .award-card:hover .award-image {
    transform: scale(1.02);
} */

/* Tablet and iPad views (less than 992px) */
@media (max-width: 991px) {
  .col-lg-6 {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
  }

  .award-card {
    margin-bottom: 30px;
  }

  .award-image {
    height: auto;
    max-height: 400px;
    object-fit: contain;
  }
}

/* Mobile view adjustments */
@media (max-width: 576px) {
  .award-card {
    max-width: 100%;
  }

  .award-image {
    height: auto;
    max-height: 300px;
  }
}

/* Desktop and Laptop views (992px and above) */
@media (min-width: 992px) {
  .row.justify-content-center {
    display: flex;
    flex-wrap: nowrap;
  }

  .col-lg-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

/* ...existing code... */
.carousel-inner {
  width: 100%;
  height: 100%;
  padding: 0;
  /* Remove padding */
}

/* ...existing code... */

/* ...existing code... */
.card {
  width: 280px;
  margin-right: 20px;
  background-color: #ffffff;
  text-align: left;
  padding: 15px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.button {
  display: block;
  width: 80%;
  padding: 10px 0;
  border-radius: 5px;
  font-size: 16px;
  transition: transform 0.3s ease, background-color 0.3s ease;
  background-color: #AA2023;
  color: white;
  text-decoration: none;
  text-align: center;
  margin-top: auto;
  /* Push the button to the bottom */
}

.button:hover {
  background-color: #a1a1a1;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* ...existing code... */

/* ...existing code... */
.card {
  width: 280px;
  margin-right: 20px;
  background-color: #ffffff;
  text-align: left;
  padding: 15px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.button {
  display: block;
  width: 80%;
  padding: 10px 0;
  border-radius: 5px;
  font-size: 16px;
  transition: transform 0.3s ease, background-color 0.3s ease;
  background-color: #AA2023;
  color: white;
  text-decoration: none;
  text-align: center;
  margin-top: auto;
}

.button:hover {
  background-color: #a1a1a1;
}

@media (max-width: 768px) {
  .card {
    width: 100%;
    margin-right: 0;
  }
}

/* ...existing code... */

.icon-card i {
  font-size: 2rem;
  color: #AA2023;
  margin-bottom: 20px;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.service-card .button:hover {
  background-color: #a1a1a1;
}

@media (max-width: 768px) {
  .service-card {
    width: 100%;
    margin-right: 0;
  }
}

/* ...existing code... */

@media (max-width: 992px) {
  .carousel-caption h6 {
    font-size: 2rem;
  }
  .carousel-caption h1 {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .carousel-caption {
    top: 60%;
    text-align: left;
  }

  .carousel-caption h1 {
    font-size: 2rem;
  }

  .carousel-caption .btn {
    font-size: 1rem;
    padding: 10px 20px;
  }
}

@media (max-width: 480px) {
  .carousel-caption {
    width: 95%;
    top: 60%;
  }

  .carousel-caption h1 {
    font-size: 1.5rem;
  }
}

/* ...existing code... */
.card.t-center {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
}

.card.t-center:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.card1 {
  padding: 15px;
  background: #ffffff;
  border-radius: 0 0 10px 10px;
  padding: 20px;
}

@media screen and (max-width: 768px) {
  .carousel-caption {
    width: 90%;
    padding: 15px;
  }

  .carousel-caption h6 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .carousel-caption h1 {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .carousel-caption .btn {
    font-size: 14px;
    padding: 8px 15px;
  }
}

@media (max-width: 768px) {
  .navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  @media screen and (max-width: 768px) {
    .carousel-caption {
      width: 90%;
      padding: 15px;
    }

    .carousel-caption h6 {
      font-size: 1.5rem;
      margin-bottom: 1rem;
    }

    .carousel-caption h1 {
      font-size: 1rem;
      margin-bottom: 1.5rem;
    }

    .carousel-caption .btn {
      font-size: 14px;
      padding: 8px 15px;
    }
  }

  @media (max-width: 768px) {
    .navbar {
      position: sticky;
      top: 0;
      z-index: 1000;
    }

    .carousel-caption {
      bottom: 20%;
    }
  }

  @media screen and (max-width: 480px) {
    .carousel-caption {
      width: 95%;
      padding: 10px;
    }

    .carousel-caption h6 {
      font-size: 1.2rem;
      margin-bottom: 0.8rem;
    }

    .carousel-caption h1 {
      font-size: 0.9rem;
      margin-bottom: 1rem;
    }

    .carousel-caption .btn {
      font-size: 12px;
      padding: 6px 10px;
    }
  }

  /* High-resolution screens */
  @media screen and (min-width: 2560px) {
    .carousel-caption {
      max-width: 1800px;
    }
  }
}
.carousel-inner {
  margin: 0;
  /* Remove margin to span full width */
}

.carousel-section .container {
  padding-left: 15px;
  padding-right: 15px;
}

.navbar-toggler {
  transition: all 0.2s ease-in-out;
  /* Faster transition for toggle */
}

@media (max-width: 768px) {
  .navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  .carousel-caption {
    bottom: 20%;
    /* Move the caption up */
  }
}

.dropdown-item {
  font-size: 14px;
}

.footer .col-md-4.custom-address-block {
  text-align: left;
  /* padding-left: 50px; */
}

.address-block.custom-address-block {
  max-width: none;
  margin: 0px;
}

@media (max-width: 768px) {
  .footer .col-md-4.custom-address-block {
    text-align: left;
  }

  /* .address-block.custom-address-block {
        max-width: 300px;
        margin: 0 auto;
    } */
}

.office-location h5 {
  color: #333;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.office-location p {
  color: #666;
  font-size: 0.9rem;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #333;
  text-decoration: none;
  padding: 10px;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.social-link:hover {
  background-color: #f0f0f0;
  color: #AA2023;
}

.social-link i {
  font-size: 1.5rem;
}

.form-control {
  border: 1px solid #ddd;
  padding: 12px;
}

.form-control:focus {
  border-color: #AA2023;
  box-shadow: 0 0 0 0.2rem rgba(170, 32, 35, 0.25);
}
.m-right {
  margin-left: 50px;
}
.pad-l {
  margin-left: 0%;
  margin-top: -6%;
}

@media (max-width: 768px) {
  .pad-l {
    margin-left: 0%;
    margin-top: -6%;
  }
}

@media (min-width: 769px) {
  .custom-margin-abuja {
    margin-top: 5rem;
  }
  .custom-margin-dubai {
    margin-top: 3rem;
  }
  .pad-l {
    margin-left: 0%;
    margin-top: -6%;
  }
}

/* ...existing code... */

@media (min-width: 992px) {
  .custom-margin-abuja {
    margin-top: 2rem;
  }

  .custom-margin-dubai {
    margin-top: 3rem;
  }
  .pad-l {
    margin-left: 0%;
    margin-top: 6%;
  }
}
@media (min-width: 768px) {
  .custom-margin-abuja {
    margin-top: 5rem;
  }
  .custom-margin-dubai {
    margin-top: 3rem;
    .pad-l {
      margin-left: 0%;
      margin-top: -6%;
    }
  }
}

/* Lead magnet modal styles */
.lead-modal {
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  position: relative;
}

.lead-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #000;
  opacity: 1;
  filter: invert(1);
}

.lead-title {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.lead-image {
  background: #0b0b0b;
}

/* Mobile responsiveness improvements for modal and content */
@media (max-width: 576px) {
  .modal-dialog {
    max-width: 100%;
    margin: 0.75rem;
  }
  .lead-modal .modal-body {
    padding: 0.75rem 1rem !important;
  }
  .modal-body {
    max-height: calc(100vh - 6rem);
    overflow-y: auto;
  }
  .lead-modal {
    border-radius: 10px;
  }
  .lead-title {
    font-size: 1rem;
    text-align: center;
  }
  .lead-form .form-control {
    font-size: 0.95rem;
    padding: 10px 12px;
  }
  .lead-form .mb-2, .lead-form .mb-3 {
    margin-bottom: 0.75rem !important;
  }
  .lead-modal .btn {
    font-size: 0.95rem;
    padding: 10px 14px;
  }
  .lead-image img {
    height: 180px;
    object-fit: cover;
  }
  .lead-image { margin-top: 0.5rem; }
  #our-thought .section-content {
    text-align: justify;
    font-size: 0.95rem;
  }
  .insight-hero {
    height: 200px;
  }
  .new-section {
    padding: 1rem 1rem;
  }
  .section-title {
    font-size: 1rem;
  }
  .job-btn {
    font-size: 14px;
    padding: 10px 12px;
  }
  .lead-close {
    width: 28px;
    height: 28px;
  }
}

.lead-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

@media (min-width: 576px) {
  .lead-image img { height: 240px; }
}

@media (min-width: 768px) {
  .lead-image img { height: 280px; }
}


/* Global responsive polish */
img { max-width: 100%; height: auto; }
.navbar-brand img { margin-left: 12px; }
.icon-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border: none;
  border-radius: 0;
  background: transparent;
}

/* Tablet tweaks */
@media (max-width: 768px) {
  #services .row > [class*='col-'] { margin-bottom: 16px; }
  .service-card-content p { text-align: center !important; }
  .service-card-content h3 { text-align: center; }
}

/* Accessibility: reduce motion when requested */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Footer: nudge first-column logo slightly right to align with text below */
.footer .row.custom-address-block > div:first-child img {
  display: inline-block;
  margin-left: 12px;
}

/* ============================================================
   Styles migrated from inline <style> blocks in index.php
   ============================================================ */

/* Footer padding override */
.footer { padding: 40px 0; }
.address-block { padding: 0 15px; }
.footer-email-link { font-size: 12px; padding: 0 15px; }
@media (max-width: 768px) {
  .footer .col-md-4 { text-align: center; }
  .address-block { max-width: 300px; margin: 0 auto; }
  .footer-logo { margin: 0 auto; display: block; }
}
.footer-copy { font-weight: 5 !important; }

/* Job listing buttons */
.job-btn {
  display: block;
  background-color: #AA2023;
  color: #fff;
  padding: 10px 16px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 15px;
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
  height: auto;
  transition: background-color 0.3s ease;
}
.job-btn .default-text,
.job-btn .hover-text { display: block; transition: opacity 0.3s ease; }
.job-btn .hover-text { position: absolute; top: 10px; left: 16px; right: 16px; opacity: 0; }
.job-btn:hover .default-text { opacity: 0; }
.job-btn:hover .hover-text { opacity: 1; }

/* Careers section layout */
.career-text-col { display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 767.98px) {
  .career-text-col { margin-top: 1rem; }
  .current-openings-title { margin-top: 1rem !important; }
  .career-img-responsive { height: auto !important; object-fit: contain !important; }
}
@media (min-width: 768px) {
  #Careers.row { align-items: stretch; }
  .career-text-col { height: 100%; }
}

/* Success modal check icon */
.success-check {
  font-size: 64px; color: #28a745; line-height: 1;
  transform: scale(0.9); transition: transform 300ms ease;
}
#successModal.show .success-check { transform: scale(1); }

/* Return / reminder toast */
.return-toast {
  position: fixed; bottom: 22px; right: 22px; z-index: 1080;
  background: #AA2023; color: #fff; padding: 12px 16px; border-radius: 10px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
  opacity: 0; transform: translateY(8px);
  transition: all 250ms ease;
}
.return-toast.show { opacity: 1; transform: translateY(0); }
