/* ---------------------- */
/* General Layout         */
/* ---------------------- */
body {
    padding-top: 85px;
}

/* ---------------------- */
/* Top Header             */
/* ---------------------- */
.top-header {
    background-color: #f8f9fa;
    font-size: 0.9rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid #dee2e6;
}

.top-header a {
    color: #000;
    margin-right: 1rem;
    text-decoration: none;
}

.top-header i {
    margin-right: 0.3rem;
}

/* ---------------------- */
/* Navbar Styling         */
/* ---------------------- */
.navbar {
    font-size: 0.95rem;
    font-weight: 500;
}

.navbar-brand img {
    height: 40px;
    margin-right: 0.5rem;
}

.navbar-nav .nav-link {
    position: relative;
    padding: 0.5rem 0.75rem;
    color: #000;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 4px;
    height: 4px;
    background: linear-gradient(to right, black 33%, yellow 33% 66%, red 66%);
    transform: scaleX(0);
    transform-origin: bottom left;
    transition: transform 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after,
.navbar-nav .nav-item.dropdown.show > .nav-link::after {
    transform: scaleX(1);
}

.dropdown-menu {
    border-radius: 0.25rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    display: none;
}

.navbar-nav .dropdown.show > .dropdown-menu {
    display: block;
}

/* ---------------------- */
/* Mega Menu Styling      */
/* ---------------------- */
.navbar-nav .mega-dropdown:hover > .mega-menu {
    display: block;
}

.mega-menu {
    width: 100%;
    left: 0;
    right: 0;
    top: 100%;
    padding: 1rem 2rem;
    background-color: #fff;
    border-radius: 0;
    position: absolute;
    display: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    z-index: 999;
}

.mega-menu .col-md-4 {
    border-right: 1px solid #eee;
}

.mega-menu .col-md-4:last-child {
    border-right: none;
}

/* ---------------------- */
/* Carousel Styling       */
/* ---------------------- */

.carousel-item {
    position: relative;
    transition: transform 0.6s ease-in-out;
}

/* Wrapper to ensure arrows align relative to this container */
.carousel {
    position: relative;
}

/* Navigation Buttons */
.carousel-control-prev,
.carousel-control-next {
    position: absolute;
    top: 50%; /* Center vertically */
    transform: translateY(-50%);
    width: 2.2rem; /* Smaller circle */
    height: 2.2rem;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s ease;
}

/* Adjust spacing from sides */
.carousel-control-prev {
    left: 1rem;
}

.carousel-control-next {
    right: 1rem;
}

/* Arrows */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-image: none !important;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 1.2rem;
    color: black;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.carousel-control-prev-icon::before {
    content: "\f104"; /* fa-chevron-left */
}

.carousel-control-next-icon::before {
    content: "\f105"; /* fa-chevron-right */
}

/* Optional: On hover */
.carousel-control-prev:hover,
.carousel-control-next:hover {
    background-color: #f0f0f0;
}

/* ---------------------- */
/* Team Carousel Adjustments */
/* ---------------------- */
#teamCarousel .carousel-control-prev,
#teamCarousel .carousel-control-next {
  position: absolute;
  top: 50%;                             /* Vertically center */
  transform: translateY(-50%);
  z-index: 1050;
  width: 2.5rem;                        /* Smaller circle */
  height: 2.5rem;
  background-color: white;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: black;
  font-size: 1.2rem;                   /* Smaller icon */
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#teamCarousel .carousel-control-prev {
  left: -2rem;
}

#teamCarousel .carousel-control-next {
  right: -2rem;
}

#teamCarousel .carousel-control-prev:hover,
#teamCarousel .carousel-control-next:hover {
  background-color: #f0f0f0;
}

/* Disable Bootstrap default background image for icons */
#teamCarousel .carousel-control-prev-icon,
#teamCarousel .carousel-control-next-icon {
  background-image: none !important;
  width: auto;
  height: auto;
  font-size: 1.2rem;
  color: black;
  display: flex;
  align-items: center;
  justify-content: center;
}

#teamCarousel .carousel-control-prev-icon::before {
  content: "\f104";                     /* ← */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}

#teamCarousel .carousel-control-next-icon::before {
  content: "\f105";                     /* → */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}


/* ---------------------- */
/* Social Icons on Cards  */
/* ---------------------- */
.card {
    position: relative;
}

.card .social-icons {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.card .social-icon {
    width: 40px;
    height: 40px;
    background-color: #f1f1f1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.card .social-icon i {
    font-size: 18px;
    color: #333;
    transition: color 0.3s ease;
}

.card .social-icon:hover {
    background-color: #000;
    transform: scale(1.1);
}

.card .social-icon:hover i {
    color: #fff;
}

/* ---------------------- */
/* Responsive Adjustments */
/* ---------------------- */
@media (max-width: 768px) {
    .card .social-icons {
        right: 10px;
        gap: 10px;
    }

    .card .social-icon {
        width: 35px;
        height: 35px;
    }

    .card .social-icon i {
        font-size: 16px;
    }
}


/* Scroll reveal animations */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}
[data-animate="fade-up"] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-animate="fade-up"].is-visible {
  opacity: 1;
  transform: translateY(0);
}
[data-animate="fade"] {
  opacity: 0;
  transition: opacity 0.7s ease;
}
[data-animate="fade"].is-visible {
  opacity: 1;
}
[data-animate="scale-in"] {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-animate="scale-in"].is-visible {
  opacity: 1;
  transform: scale(1);
}
.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(135deg, #D32F2F, #FFC107);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(4, 48, 125, 0.22);
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, filter 0.2s ease;
  z-index: 1040;
  backdrop-filter: saturate(120%) blur(6px);
}
.back-to-top i {
  font-size: 1rem;
  line-height: 1;
}
.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.back-to-top:hover {
  filter: brightness(1.06);
  transform: translateY(-2px) scale(1.02);
}
.back-to-top:active {
  transform: translateY(0) scale(0.98);
}
.back-to-top:focus-visible {
  outline: 3px solid rgba(255,255,255,0.5);
  outline-offset: 3px;
}

@media (max-width: 576px) {
  .back-to-top {
    right: 1rem;
    bottom: 1rem;
    width: 2.5rem;
    height: 2.5rem;
  }
  .back-to-top i { font-size: 0.95rem; }
}


.timeline {
  position: relative;
  padding-left: 1.5rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(4, 170, 186, 0.2);
}
.timeline-item {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1.75rem;
}
.timeline-point {
  position: absolute;
  left: 0;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid rgba(4, 170, 186, 0.75);
}
.timeline-content {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  padding: 1rem 1.25rem;
}
.bg-gradient {
  background: linear-gradient(135deg, #0c529c, #04aaba);
}

.hero-carousel {
  position: relative;
  overflow: hidden;
}
.hero-carousel .carousel-item {
  min-height: 520px;
}
@media (min-width: 992px) {
  .hero-carousel .carousel-item {
    min-height: 620px;
  }
}
.hero-slide-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-slide-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 6s ease;
}
.hero-carousel .carousel-item.active .hero-slide-image {
  transform: scale(1);
}
.hero-slide-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  filter: brightness(0.65);
}
.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(6, 20, 51, 0.65), rgba(4, 129, 170, 0.45));
}
.hero-slide-content {
  position: relative;
  padding-top: 4rem;
  padding-bottom: 4rem;
}
.hero-carousel .badge {
  letter-spacing: 0.08em;
}
.hero-carousel .carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

/* Toastr icon layout */
.toast .toast-message {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.toast .toast-message .toast-icon {
  font-size: 1.05rem;
  line-height: 1;
}

/* Avatar preview styles */
.avatar-preview{
  width: 180px; height: 180px; object-fit: cover; border-radius: 12px; box-shadow: 0 10px 24px rgba(15,23,42,.18); transition: transform .2s ease;
}
.avatar-preview:hover{ transform: scale(1.03); }
.avatar-modal-img{ max-width: 100%; max-height: 80vh; display:block; }
