/*Carousel*/
.carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #fff;
}

.carousel-indicators .active {
  background-color: #000;
}

.carousel-control-prev,
.carousel-control-next {
  width: 45px;
  height: 45px;
  border-radius: 45px;
  border: 2px solid #fff;
  background-color: rgba(0, 0, 0, 0.4);
  top: 50%;
  transform: translateY(-50%);
}

.carousel-control-prev {
  left: 20px;
}

.carousel-control-next {
  right: 20px;
}

.carouselText {
  color: black;
  text-align: left;
}

#carosueslBtn {
  background-color: #5E5E5E;
  border: none;
}

#carouselDescription h1 {
  font-size: 3.5rem;
}

#carouselDescription h2 {
  font-size: 3rem;
}

#section2 h5,
p {
  text-align: center;
}

h1 {
  font-size: 2.5rem;
  ;
  font-weight: bold;
  color: #063274;
}

#section3 p {
  text-align: justify;
}

#section4 p {
  text-align: justify;
}

#section5 {
  background-image: url("../images/sky.jpg");
  height: 100%;
  width: auto;
  background-size: cover;
  background-position: center;
}


.section4-div1 {
  background-color: #fff;
  color: #000000;
  padding: 20px;
  border-radius: 8px;
  display: inline-block;
}

.card-img-top {
  height: 220px;
  object-fit: cover;
}


/* Mobile Optimization */
@media (max-width: 768px) {
  #carouselDescription h1 {
    font-size: 1rem;
  }

  #carouselDescription h2 {
    font-size: 1rem;
  }

  #carouselDescription h5 {
    font-size: 0.8rem;
  }
}

@media (max-width: 576px) {
  #carouselDescription h1 {
    font-size: 1rem;
  }

  #carouselDescription h2 {
    font-size: 1rem;
  }

  #carouselDescription h5 {
    font-size: 0.8rem;
  }
}

/* ===== Mobile Navbar Styling ===== */
@media (max-width: 576px) {

  .navbar-toggler {
    margin-left: auto;
  }

  /* Blue dropdown background */
  #navbarMenu {
    background-color: #063274;
    /* your blue */
  }

  /* White text */
  .navbar-nav .nav-link {
    color: #ffffff !important;
    padding: 12px 0;
    font-size: 1.1rem;
  }

  .navbar-nav .nav-link:hover {
    color: #dddddd !important;
  }

  /* Mobile logo inside menu */
  .mobile-logo img {
    max-width: 160px;
  }

  /* Center menu items */
  .navbar-nav {
    align-items: center;
  }

  /* Move toggle icon slightly up */
  .navbar-toggler {
    margin-top: -6px;
  }

  /* Make hamburger icon white */
  .navbar-toggler-icon {
    filter: invert(1);
  }
}

/* Hide mobile logo on desktop */
@media (min-width: 577px) {
  .mobile-logo {
    display: none;
  }
}


@media (max-width: 576px) {
  .mobile-break {
    display: block;
    margin-top: 4px;
  }

  /* Optional: hide colon on mobile */
  .contact-table td:nth-child(3) {
    display: none;
  }
}







@media (max-width: 576px) {

  /* --- Your existing grid layout --- */
  table tr {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: .5rem;
    align-items: start;

    /* spacing inside each row and between rows */
    padding-block: .5rem;
    margin-bottom: .5rem;
  }

  /* Hide the colon ':' (3rd cell) */
  table tr>td:nth-of-type(3) {
    display: none;
  }

  /* Put phone number under label (2nd column) */
  table tr>td:nth-of-type(4) {
    grid-column: 2;
    margin-top: .25rem;
  }

  /* --- NEW: Remove white line spaces before "Main Contact Details" --- */
  /* 1) Hide rows where *all* <td> are empty */
  table tr:not(:has(> td:not(:empty))) {
    display: none;
  }

  /* 2) Remove extra bottom margin from any row that is directly followed by an empty row */
  table tr:has(+ tr:not(:has(> td:not(:empty)))) {
    margin-bottom: 0;
  }
}

#section3,
#section4,
#section7 {
  scroll-margin-top: 80px;
  /* height of your navbar */
}


@media (max-width: 767px) {

  .see-more {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    color: #0c4694;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
  }

  .see-more i {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #fff;
    /* white background */
    border: 2px solid #0c4694;
    /* blue border */
    color: #0c4694;
    /* blue arrow */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: transform 0.3s ease;
  }

  /* Rotate arrow when expanded */
  .service-text.expanded+.see-more i {
    transform: rotate(180deg);
  }
}

/* Desktop – unchanged */
@media (min-width: 768px) {
  .see-more {
    display: none;
  }
}

/* Collapse service description on mobile */
@media (max-width: 767px) {
  .service-text {
    max-height: 94px;
    /* collapsed height */
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .service-text.expanded {
    max-height: 1000px;
    /* expanded */
  }
}

@media (max-width: 767.98px) {

  #section3,
  #section4,
  #section4 h1,
  #section4 p,
  #section4 .card-body,
  #section4 .service-text {
    text-align: center !important;
  }
}

/* Mobile full-screen carousel */
@media (max-width: 767.98px) {
  #sectionOne {
    height: 100vh;
  }

  #sectionOne .carousel-inner,
  #sectionOne .carousel-item {
    height: 100vh;
  }

  #sectionOne img {
    height: 100vh;
    object-fit: cover;
  }

  #sectionOne .carousel-caption {
    height: 100vh;
    padding: 1rem;
  }
}

@media (max-width: 767.98px) {
  #carouselDescription h1 {
    margin-top: 30px;
    font-size: 1.8rem;
  }

  #carouselDescription h2 {
    margin-top: 50px;
    font-size: 1.4rem;
  }

  #carouselDescription h5 {
    margin-top: 30px;
    font-size: 1.2rem;
  }
}


/* Center logo on mobile */
@media (max-width: 576px) {
  #mainNav .navbar-brand {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 576px) {
  .carousel-control-prev,
  .carousel-control-next {
    display: none;
  }
}
