/* Override Bootstrap light background color */
.bg-light {
    --bs-bg-opacity: 1;
    background-color: #F5FEFD !important;
  }
  
  .navbar-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    gap: 2rem;
  }
  
  .navbar-grid a,
  .navbar-logo {
    justify-self: center;
  }
  
  .navbar-logo img {
    width: 150px;
  }

  /* .custom-gap {
    gap: 100px;
  } */

  .custom-wm{
    max-width: 100%;
    margin: 0px;
  }

  .custom-navbar-container {
    padding-left: 5rem;
    padding-right: 5rem;
  }


  @media (min-width: 992px) {
    .navbar-expand-lg .navbar-nav {
        flex-direction: row;
        gap: 100px;
    }
}
  
  /* Ensure nav items are aligned to the right on large screens */
  @media (min-width: 992px) {
    .navbar-collapse {
      justify-content: flex-end;
    }
  }

  /* On small screens, let Bootstrap control nav layout */
  @media (max-width: 991px) {
    .custom-navbar-container {
      padding-left: 1rem;
      padding-right: 1rem;
    }
  
    .navbar-collapse {
      justify-content: center;
    }
  }
  /* Sticky Nav Style (Desktop Only) */
.sticky-nav {
  position: fixed;
  top: -80px; /* hide initially */
  left: 0;
  width: 100%;
  background-color: white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  z-index: 1050;
  transition: top 0.4s ease-in-out;
}

.sticky-nav.show {
  top: 0; /* slide into view */
  justify-content: center;
  gap: 150px;
}

.sticky-nav i {
  color: #2071A5 !important;
}

.sticky-nav a {
  font-weight: 500;
  text-decoration: none;
  color: #2071A5 !important;
}

.sticky-nav a:hover {
  color: black;
}

/* Sticky Nav Link Hover Animation */
.sticky-nav .nav-underline {
  position: relative;
  color: #2071A5 !important;
  text-decoration: none;
}

.sticky-nav .nav-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 2px;
  width: 0;
  background-color: #2071A5;
  border-radius: 2px;
  transition: width 0.3s ease-in-out;
}

.sticky-nav .nav-underline:hover::after {
  width: 100%;
}


/* end of sticky nav */

  @media (max-width: 768px) {
    .navbar-grid {
      grid-template-columns: 1fr;
      text-align: center;
      gap: 1.5rem;
    }
  }

  @media (min-width: 992px) {
    .gap-lg-4 {
        gap: 12rem !important;
    }
}

  .nav-link {
    position: relative;
    font-weight: 600;
    color: #2071A5 !important;
  }
  
  .nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 2px;
    height: 3px;
    width: 0;
    background-color: #2071A5;
    border-radius: 2px;
    transition: width 0.3s ease-in-out;
  }
  
  .nav-link:hover::after {
    width: 100%;
  }


 /* footer CSS */ 
/* Footer background and text */
.footer {
    background-color: #2071A5;
  }
  
  .text-footer-light {
    color: #F5FEFD;
    font-weight: 400;
  }
  
  .text-footer-light:hover {
    color: #F5FEFD; /* Same color to prevent shift */
    text-decoration: none; /* Remove underline on hover */
  }
  
  /* Back to Top Button Styles */
  .back-to-top {
    background-color: #F5FEFD;
    color: #2071A5;
    border: none;
    padding: 0.5rem 1rem;
    font-weight: 400;
    text-decoration: none;
    border-radius: 10px; /* fully rounded corners */
    transition: all 0.3s ease;
    display: inline-block;
  }
  
  .back-to-top:hover {
    background-color: #2071A5;
    color: #F5FEFD;
    text-decoration: none; /* prevents underline on hover */
  }

/* hero-section CSS */
  .hero-section {
    background-color: #F5FEFD;
    color: #2071A5;
  }
  
  .hero-heading {
    color: #2071A5;
    font-size: 2.5rem;
    font-weight: 700;
  }
  
  .hero-subheading {
    color: #2071A5;
    font-size: 1.25rem;
    font-weight: 400;
  }
  
  .hero-btn {
    background-color: #2071A5;
    color: #F5FEFD;
    padding: 0.6rem 1.5rem;
    font-weight: 500;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: 0.3s ease-in-out;
  }
  
  .hero-btn:hover {
    background-color: #16557f;
    color: #ffffff;
    text-decoration: none;
  }
/* end of hero-section CSS */

/* service-section CSS */

.py-5 {
  padding-top: 4rem !important;
  padding-bottom: 3rem !important;
}

.text-light {
  --bs-text-opacity: 1;
  color: #2071A5 !important;
  margin-bottom: 0.5rem !important;
  font-weight: 700;
}

.text-muted{
  color: #2071A5 !important;
  margin-bottom: 3rem !important;
}

.flip-card {
    background: transparent;
    perspective: 1000px;
  }
  
  .flip-card-inner {
    position: relative;
    width: 100%;
    height: 250px;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
  }
  
  .flip-card-front,
  .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 1rem;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
  }
  
  .flip-card-front {
    background-color: #2071A5 !important;
    color: #F5FEFD;
    border: 1px solid #2071A5;
}
  
  .flip-card-back {
    background-color: #2071A5;
    color: #F5FEFD;
    transform: rotateY(180deg);
    border: 1px solid #2071A5;
  }
  
  .flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
  }
  
  .icon-default {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }
  
  /* Enable click-to-flip for touch devices */
  @media (hover: none) {
    .flip-card-inner.flipped {
      transform: rotateY(180deg);
    }
  
    .flip-card {
      cursor: pointer;
    }
  }
/* end of service-section CSS */

/* contact section */
.contact-section {
  display: flex;
  justify-content: center;
  background: #f5f7fa;
  padding: 60px 20px;
}

.contact-container {
  display: flex;
  width: 100%;
  max-width: 1200px;
  box-shadow: 0 0 20px rgba(0,0,0,0.08);
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
}

.contact-left {
  flex: 1;
  position: relative;
  background-image: url('../assets/contactImg.webp'); /* update this accordingly */
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-end;  /* Align content to the bottom */
  justify-content: center;
  padding: 2rem; /* Optional: adds spacing around the content */
  min-height: 100%;
}

/* Overlay */
.contact-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(32, 113, 165, 0.4); /* #2071A5 with 50% opacity */
  z-index: 1;
}

/* Foreground Content */
.contact-left-content {
  position: relative;
  z-index: 2;
  justify-items: center;
  color: #fff;
  max-width: 400px;
}

.contact-left-content h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: bold;
}

.contact-left-content p {
  font-size: 14px;
  margin-bottom: 20px;
}

.social-icons {
  display: flex;
  gap: 20px;
  padding-left: 6px;
}

.social-icons a {
  margin-right: 10px;
  font-size: 20px;
  color: #fff;
  transition: color 0.3s;
}

.social-icons a:hover {
  color: #2071A5;
}

/* Right Panel */
.contact-right {
  flex: 2;
  padding: 40px;
  background: white;
}

.contact-right h2 {
  color: #2071A5;
  font-weight: bold;
  font-size: 30px !important;
  margin-bottom: 10px;
}

.contact-right p {
  color: rgb(32, 113, 165, 0.7);
  margin-bottom: 30px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: flex;
  gap: 20px;
}

.input-group {
  flex: 1;
  position: relative;
}

.input-group i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #2071A5;
}

.input-group input,
.input-group textarea {
  width: 100%;
  padding: 12px 12px 12px 38px;
  border: 1px solid #2071A5;
  outline: none;
  font-size: 14px;
}

.input-group textarea {
  resize: vertical;
  height: 100px;
}

.input-group.full {
  flex: 100%;
}

button[type="submit"] {
  background: #2071A5;
  color: white;
  padding: 14px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  transition: background 0.3s;
  cursor: pointer;
}

button[type="submit"]:hover {
  background: #2071A5;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .contact-container {
    flex-direction: column;
  }

  .contact-left,
  .contact-right {
    flex: 1;
    width: 100%;
  }

  .contact-left {
    min-height: 250px; /* Ensure image section isn't too short */
    align-items: center;
    padding: 40px 20px;
    text-align: center;
  }

  .contact-left-content h3 {
    justify-content: center;
  }

  .form-row {
    flex-direction: column;
  }

  .input-group {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .contact-section {
    padding: 40px 10px;
  }
}
  .contact-right {
    padding: 30px 20px;
  }

  .contact-right h2 {
    font-size: 20px;
  }

  .contact-right p {
    font-size: 14px;
  }

  .input-group input,
  .input-group textarea {
    font-size: 13px;
    padding: 10px 10px 10px 36px;
  }

  .social-icons {
    justify-content: center;
    gap: 12px;
  }

  .social-icons a {
    font-size: 18px;
  }

  button[type="submit"] {
    padding: 12px;
    font-size: 15px;
  }

/* end of contact section */

.fw-bold {
  font-weight: 700 !important;
  color: #2071A5 !important;
}

.fw-semibold {
  font-weight: 600 !important;
  color: #2071A5 !important;
}

#pmission{
  color: #2071A5 !important;
}

#aboutp{
  margin-top: 0rem !important;
  color: #2071A5 !important;
}

.text-primary i{
  color: #2071A5 !important;
}

.bi-graph-up-arrow::before {
  content: "\f673";
  color: #2071A5;
}

.bi-shield-lock::before {
  content: "\f538";
  color: #2071A5;
}

.bi-clock-history::before {
  content: "\f292";
  color: #2071A5;
}

.bi-people-fill::before {
  content: "\f4cf";
  color: #2071A5;
}

.mt-3 {
  margin-top: 1rem !important;
  color: #2071A5;
}

.card-text:last-child {
  margin-bottom: 0;
  color: #2071A5;
}

body{
  font-family: var(--bs-body-font-family) !important;
}

html{
    scroll-behavior: smooth; /* Already added, but keep it */
}

/* video hero section */

.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  /* padding-left: 5%; */
  color: white;
}

.background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Fills both width & height, even if it crops slightly */
  z-index: -2;
}

/* .hero-content {
  max-width: 600px;
  z-index: 1;
} */

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.25rem;
  line-height: 1.6;
}

.hero-content.glass-box {
  height: 100%;
  width: 100%; /* <-- You can change this to whatever width you want */
  max-width: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 5rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

/* CTA button style */
.cta-button {
  align-self: flex-start; /* 👈 Keeps it sized to content instead of stretching */
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.75rem 1.5rem;
  background-color: #2071A5;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 0.5rem;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

/* Tablet and below */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    justify-content: center;
    padding-left: 0;
    text-align: center;
  }

  .hero-content.glass-box {
    width: 100vw;            /* Full width */
    height: 100vh;           /* Full height */
    border-radius: 0;        /* Remove rounding for edge-to-edge effect */
    margin: 0;
    padding: 2rem;
    align-items: center;
    justify-content: center;
  }

  .cta-button {
    align-self: center;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .cta-button {
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
  }
}

.card-body {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1 1 auto;
  padding: var(--bs-card-spacer-y) var(--bs-card-spacer-x);
  color: var(--bs-card-color);
}


.about-us-section .card {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.row.text-center.mb-5 p {
  color: #2071A5;
}

.navbar .navbar-brand img {
  max-height: 60px;
  height: auto;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.info {
  display: flex;
  justify-content: center;
  gap: 70px;
  flex-wrap: wrap; Allows wrapping on smaller screens
  text-align: center;
}

.contact-info {
  display: flex;
  gap: 10px;
}

.contact-info a{
    text-decoration: none;
    color: rgb(32, 113, 165, 0.7);
}

/* Responsive behavior for small screens */
@media (max-width: 576px) {
  .info {
    flex-direction: column;
    gap: 10px;
    /*align-items: center;*/
  }

  .contact-info {
    justify-content: center;
  }
}