html {
  scroll-behavior: smooth;
}

/* Align dropdown items to the right on mobile */
@media (max-width: 991px) {
    .navbar-nav .dropdown-menu {
        right: 0;
        left: auto;
        text-align: right;
    }
    /* Move caret to the far right */
    .navbar-nav .dropdown-toggle .caret {
        margin-left: auto;
    }
}


/* Ensure dropdown overlays instead of clipping content */
.navbar {
  position: relative; /* positioning context */
  z-index: 1000;      /* keep navbar + dropdown above page content */
}

.navbar .dropdown-menu {
  top: 100%;          /* align with bottom of navbar */
  margin-top: 0;
  width: 100%;        /* full width mega menu */
  left: 0;
  right: 0;
  border-radius: 0;
}


/* Base hidden state */
.dropdown-menu {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Shown state */
.dropdown-menu.show {
  display: block;
  opacity: 1;
}




.icons i {
    color: red;
    margin-left: 10px; /* spacing between icons */
    transition: color 0.3s ease;
}

.icons i:hover {
    color: darkred; /* hover effect */
}

.footer-copyright a {
    color: red;
    transition: color 0.3s ease;
}
.footer-copyright a:hover {
    color: darkred;
}

.text-info {
    color: #0453a1 !important; /* DodgerBlue */
}

.text-yellow {
  color: #FFD700 !important; /* Gold/Yellow */
}

.text-black {
  color: #000000 !important; /* Pure black */
}


@media (max-width: 768px) {
  .carousel-caption {
    bottom: 10px;       /* move closer to bottom */
    left: 10px;         /* keep aligned left */
    right: auto;        /* prevent centering */
    text-align: left;   /* force left alignment */
    font-size: 0.9rem;  /* shrink text */
    padding: 0 15px;
  }
  .carousel-caption h1 {
    font-size: 1.2rem;  /* smaller headline */
  }
}

.diagonal-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(0,0,0,0.3) 70%, transparent 70%);
  pointer-events: none; /* overlay doesn’t block clicks */
}

@media (max-width: 768px) {
  .diagonal-overlay {
    background: linear-gradient(115deg, rgba(0,0,0,0.4) 40%, transparent 70%);
  }
}

.bottom-overlay {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.0) 80%);
  pointer-events: none; /* overlay doesn’t block clicks */
}

.random-overlay {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 20%, rgba(0,0,0,0.0) 90%);
  pointer-events: none; /* overlay doesn’t block clicks */
}

.to-left-overlay,
.to-right-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none; /* overlay doesn’t block clicks */
  z-index: 1; /* make sure overlay sits above background */
}

.to-left-overlay {
  background: linear-gradient(to right, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.15) 75%, rgba(0,0,0,0) 100%);
}

.to-right-overlay {
  background: linear-gradient(to left, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.15) 75%, rgba(0,0,0,0) 100%);
}

.about-eyebrow {
  margin-bottom: 0.5rem;
  color: #e55353;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.about-heading {
  margin-bottom: 0;
  color: #1e293b;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 400;
}

.about-heading span {
  color: #159aab;
  font-weight: 700;
}

.about-intro {
  max-width: 720px;
  margin-right: auto;
  margin-left: auto;
  color: #52606d;
  line-height: 1.8;
}


.career-caption {
  z-index: 2;
  width: min(440px, 82%);
  padding: 1rem 1.25rem;
  border-left: 3px solid #e55353;
  background: rgba(10, 24, 35, 0.42);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.career-caption p {
  margin: 0;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 600;
  line-height: 1.35;
}

@media (max-width: 576px) {
  .career-caption {
    width: 86%;
    padding: 0.8rem 1rem;
  }
}

.carousel-control-prev.custom-prev,
.carousel-control-next.custom-next {
  bottom: 35px;
  top: auto;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #fff;
  border: none;
}

/* Positioning */
.carousel-control-prev.custom-prev { left: 15px; }
.carousel-control-next.custom-next { right: 25px; }

/* Hover effect */
.carousel-control-prev.custom-prev:hover,
.carousel-control-next.custom-next:hover {
  background-color: rgba(255,255,255,0.7);
  color: #fc0404;
}

.staff-section {
  position: relative;
  background-image: url("/static/images/scenery/image4.jpg"); /* adjust path */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  padding: 60px 0;
}

.staff-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,                        /* diagonal angle */
    rgba(0,0,0,0.9) 0%,            /* strong dark at top-left */
    rgba(0,0,0,0.7) 40%,           /* medium fade */
    rgba(0,0,0,0.2) 80%,           /* light fade */
    rgba(0,0,0,0) 100%             /* transparent bottom-right */
  );
}

.staff-section .container {
  position: relative;
  z-index: 1; /* keeps text above overlay */
}

.pentagon-box {
  width: 300px;
  height: 300px;
  -webkit-clip-path: polygon(
    50% 0%,   /* top */
    100% 38%, /* upper right */
    82% 100%, /* lower right */
    18% 100%, /* lower left */
    0% 38%    /* upper left */
  );
  clip-path: polygon(
    50% 0%,   /* top */
    100% 38%, /* upper right */
    82% 100%, /* lower right */
    18% 100%, /* lower left */
    0% 38%    /* upper left */
  );
  overflow: hidden;
  margin: 20px auto;
}

.pentagon-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.hexagon-box {
  width: 200px;
  height: 400px;
  -webkit-clip-path: polygon(
    50% 0%,    /* top */
    90% 20%,   /* upper right */
    100% 60%,  /* right */
    75% 100%,  /* bottom-right */
    25% 100%,  /* bottom-left */
    0% 60%,    /* left */
    10% 20%    /* upper left */
  );
  clip-path: polygon(
    50% 0%,    /* top */
    90% 20%,   /* upper right */
    100% 60%,  /* right */
    75% 100%,  /* bottom-right */
    25% 100%,  /* bottom-left */
    0% 60%,    /* left */
    10% 20%    /* upper left */
  );
  overflow: hidden;
  margin: 20px auto;
  position: relative;
}

.hexagon-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}



.we-do-section {
  position: relative;
  background-image: url("/static/images/scenery/image6.jpg"); /* adjust path */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  padding: 60px 0;
}

.we-do-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    315deg,                        /* diagonal angle reversed */
    rgba(0,0,0,0.9) 0%,            /* strong dark at top-right */
    rgba(0,0,0,0.7) 40%,           /* medium fade */
    rgba(0,0,0,0.2) 80%,           /* light fade */
    rgba(0,0,0,0) 100%             /* transparent bottom-left */
  );
}

.we-do-section .container {
  position: relative;
  z-index: 1; /* keeps text above overlay */
}


.services-we-do-section {
  position: relative;
  margin: 20px auto;
  padding: 20px 20px;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;

  /* Rectangle shape */
  width: 100%;
  max-width: 350px;
  border-radius: 8px;
  overflow: hidden;

  /* Background image with blur */
  background: url("/static/images/scenery/image5.jpg") center/cover no-repeat;
}

.services-we-do-section::before {
  content: "";
  position: absolute;
  inset: 0;
  backdrop-filter: blur(6px); /* blur effect */
  background: rgba(0,0,0,0.5); /* dark overlay */
  z-index: 0;
}

.services-we-do-section p {
  position: relative;
  z-index: 1; /* keep text above blur */
  margin: 0;
}


.dashboard-theme .btn-primary,
.dashboard-theme .btn-success,
.dashboard-theme .btn-danger,
.dashboard-theme .btn-outline-danger,
.dashboard-theme .btn-secondary {
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.dashboard-theme .btn-primary,
.dashboard-theme .btn-success,
.dashboard-theme .btn-danger {
  background-color: #dc3545;
  color: #fff;
}

.dashboard-theme .btn-primary:hover,
.dashboard-theme .btn-success:hover,
.dashboard-theme .btn-danger:hover {
  background-color: #b52a3a;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(220, 53, 69, 0.2);
}

.dashboard-theme .btn-secondary {
  background-color: #0d6efd;
  color: #fff;
}

.dashboard-theme .btn-secondary:hover {
  background-color: #0b5ed7;
}

.dashboard-theme .btn-outline-danger {
  background-color: transparent;
  color: #dc3545;
  border: 1px solid #dc3545;
}

.dashboard-theme .btn-outline-danger:hover {
  background-color: #dc3545;
  color: #fff;
}

.dashboard-theme h1,
.dashboard-theme h2,
.dashboard-theme h3,
.dashboard-theme h4,
.dashboard-theme h5,
.dashboard-theme h6 {
  color: #0453a1;
}

.dashboard-theme .card {
  border: 1px solid rgba(4, 83, 161, 0.12);
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(4, 83, 161, 0.08);
}

.dashboard-theme .card .card-body {
  background: linear-gradient(145deg, #ffffff 0%, #f8fbff 100%);
}

.dashboard-theme .form-control,
.dashboard-theme .form-control-file,
.dashboard-theme textarea,
.dashboard-theme select {
  border: 1px solid rgba(4, 83, 161, 0.25);
  border-radius: 8px;
}

.dashboard-theme .form-control:focus,
.dashboard-theme textarea:focus,
.dashboard-theme select:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.15);
}

.dashboard-theme .text-muted {
  color: #5b6b7a !important;
}

.dashboard-theme .section-label,
.dashboard-theme .dashboard-section-title {
  color: #0453a1;
}

.dashboard-theme .dashboard-nav {
  background: linear-gradient(90deg, #ffffff 0%, #f4f8fc 100%);
  border-bottom: 1px solid rgba(4, 83, 161, 0.12);
  box-shadow: 0 6px 20px rgba(4, 83, 161, 0.08);
}

.dashboard-theme .dashboard-brand-text {
  color: #0453a1;
  font-size: 1rem;
}

.dashboard-theme .dashboard-nav-link {
  color: #0453a1 !important;
  font-weight: 600;
}

.dashboard-theme .dashboard-nav-link:hover,
.dashboard-theme .dashboard-nav-link:focus {
  color: #dc3545 !important;
}

.dashboard-theme .logout-link {
  color: #dc3545 !important;
}

.dashboard-theme .dashboard-footer {
  background: #0f2e4d;
  color: #f8fbff;
}

.dashboard-theme .dashboard-footer-link {
  color: #ff6b6b;
  text-decoration: none;
}

.dashboard-theme .dashboard-footer-link:hover {
  color: #ffffff;
}

/* Default: mobile view */
#staffCarousel .carousel-item .col-12 {
  flex: 0 0 100%;
  max-width: 100%;
  display: none; /* hide all cards by default */
}

/* Show only the first card in each slide on mobile */
#staffCarousel .carousel-item .col-12:first-child {
  display: block;
}

/* On medium screens and up: show both cards side by side */
@media (min-width: 768px) {
  #staffCarousel .carousel-item .col-12 {
    display: block;
    flex: 0 0 50%;
    max-width: 50%;
  }
}
