:root {
  --navy-blue: #162e51;
  --dark-blue: #0d1c2f;
  --gold: #ffbe2e;
}

/* Begin fight to undo global styles */
html {
  font-size: 16px;
}
.main-wrapper > .row {
  margin-right: calc(-0.5 * var(--bs-gutter-x));
  margin-left: calc(-0.5 * var(--bs-gutter-x));
}

.fbi-website [class^="icon-"]::before {
  content: none;
}

/* End fight to undo global styles */

/* Custom styles */
:root {
  --navy-blue: #162e51;
  --dark-blue: #0d1c2f;
  --gold: #ffbe2e;
  --bs-body-font-size: 1.25rem;
}

/* Custom styles */

.fbi-website {
  width: 100%;
}

#mobileNav {
  overflow-y: scroll;
  padding-top: 35px; /* Default for screens > 640px */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body.castle-toolbar-active #mobileNav {
  left: 190px;
  top: calc(55px + 35px);
}

/* Custom styles */
i.fa-bars:hover {
  color: #fddf00 !important;
}

.offcanvas-header button.btn-close-white:hover {
  filter: brightness(200%);
  background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fddf00'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat !important;
}

.bg-navy-blue {
  background-color: var(--navy-blue);
}

.bg-dark-blue {
  background-color: var(--dark-blue);
}

header {
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

header .navbar:before {
  display: none;
}

.text-warning {
  color: var(--gold) !important;
}

.navbar-nav .nav-link {
  font-family: "Rajdhani", sans-serif;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: white !important;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: #fddf00 !important;
}

.navbar-nav .nav-link[style*="color: #fddf00"] {
  color: #fddf00 !important;
}

.social-icons i {
  font-size: 32px;
  height: 32px;
  width: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}

.social-icons a:hover i {
  color: #fddf00 !important;
}

/* Hero section */
.hero-section {
  height: 400px;
  overflow: hidden;
  position: relative;
}

@media (min-width: 576px) {
  .hero-section {
    height: 450px;
  }
}

@media (min-width: 768px) {

  .hero-section {
    height: 550px;
  }
}

@media (min-width: 992px) {
  .hero-section {
    height: 650px;
  }
}

@media (min-width: 1200px) {
  .hero-section {
    height: 650px;
  }
}

.hero-carousel {
  width: 100%;
  height: 100%;
  position: relative;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
}

.hero-image {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.25);
}

.hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
  padding: 0;
}

.hero-content .container {
  padding: 1rem 1rem 4rem;
}

@media (max-width: 767px) {
  #mobileNav {
    padding-top: 75px;
  }

  .hero-content .container {
    padding: 1rem 1rem 2rem;
  }

  .hero-read-more {
    margin-top: 0.5rem;
  }
}

.hero-content h2 {
  font-size: 2.5rem;
  font-family: "Rajdhani", sans-serif;
  margin-bottom: 0;
}

.hero-content p {
  font-size: 1.25rem;
  font-weight: 500;
  font-family: "Rajdhani", sans-serif;
  margin-bottom: 0;
}

@media (min-width: 576px) {
  .hero-content h2 {
    font-size: 3.5rem;
  }
  .hero-content p {
    font-size: 1.5rem;
  }
}

@media (min-width: 768px) {
  .hero-content h2 {
    font-size: 4rem;
  }
  .hero-content p {
    font-size: 1.75rem;
  }
}

@media (min-width: 992px) {
  .hero-content h2 {
    font-size: 5rem;
  }
  .hero-content p {
    font-size: 2rem;
  }
}

.hero-read-more {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  text-decoration: none;
  border: 1px solid white;
  border-radius: 4px;
  margin-top: 1.5rem;
  transition: all 0.3s ease;
}

.hero-read-more:hover {
  background-color: rgba(255, 255, 255, 0.3);
  color: white;
  text-decoration: none;
}

.hero-indicators {
  z-index: 3;
}

.hero-indicators .indicator {
  width: 12px;
  height: 12px;
  background-color: white;
  border-radius: 50%;
  opacity: 0.5;
  border: none;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.hero-indicators .indicator.active {
  opacity: 1;
}

.carousel-control-prev,
.carousel-control-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5%;
  height: 100%;
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.carousel-control-prev {
  left: 0;
}

.carousel-control-next {
  right: 0;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 0.9;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  background-repeat: no-repeat;
  background-position: 50%;
  background-size: 100% 100%;
}

.carousel-control-prev-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
}

.carousel-control-next-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/* Section titles */
.section-title {
  font-weight: 600;
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
  color: #263f77;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background-color: var(--navy-blue);
}

.bg-navy-blue .section-title::after {
  background-color: white;
}

.leadership-section h2,
.featured-content-section h2,
.i-want-to-section h2 {
  font-family: "Rajdhani", sans-serif;
  font-weight: normal;
}

.leadership-section h2,
.featured-content-section h2 {
  font-family: "Source Serif 4", serif;
  font-size: 1.75rem;
  color: #263f77;
}

@media (min-width: 576px) {
  .leadership-section h2,
  .featured-content-section h2 {
    font-size: 2rem;
  }
}

@media (min-width: 768px) {
  .leadership-section h2,
  .featured-content-section h2 {
    font-size: 2.25rem;
  }
}

@media (min-width: 992px) {
  .leadership-section h2,
  .featured-content-section h2 {
    font-size: 2.5rem;
  }
}

/* Leadership cards */
.leadership-card {
  border: none;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  position: relative;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.leadership-card .card-img-top {
  width: 100%;
  height: auto;
  border-radius: 10px 10px 0 0;
}

.leadership-card .card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.8) 30%,
    rgba(0, 0, 0, 0.6) 50%,
    rgba(0, 0, 0, 0.2) 80%,
    rgba(0, 0, 0, 0) 100%
  );
  padding: 3rem 1rem 1rem;
  text-align: left;
  border-radius: 0 0 10px 10px;
}

.leadership-card .card-overlay h3,
.leadership-card .card-overlay p {
  font-family: "Rajdhani", sans-serif;
}

.leadership-card .card-overlay h3 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 0rem;
  text-transform: none;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  font-weight: 700;
}

.leadership-card .card-overlay p {
  color: white;
  font-size: 1rem;
  margin: 0;
  text-transform: uppercase;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Responsive font sizes for leadership cards */
@media (min-width: 576px) {
  .leadership-card .card-overlay h3 {
    font-size: 1.75rem;
  }
  .leadership-card .card-overlay p {
    font-size: 1.125rem;
  }
}

@media (min-width: 768px) {
  .leadership-card .card-overlay h3 {
    font-size: 2rem;
  }
  .leadership-card .card-overlay p {
    font-size: 1.25rem;
  }
}

@media (min-width: 992px) {
  .leadership-card .card-overlay h3 {
    font-size: 1.5rem;
  }
  .leadership-card .card-overlay p {
    font-size: 1.25rem;
  }
}

@media (min-width: 1200px) {
  .leadership-card .card-overlay h3 {
    font-size: 2rem;
  }
  .leadership-card .card-overlay p {
    font-size: 1.25rem;
  }
}

.leadership-section a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.leadership-section a:hover .leadership-card {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Quick links */
.quick-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  transition: transform 0.3s ease;
}

.quick-link:hover {
  transform: translateY(-5px);
}

.icon-container {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Featured cards */
.featured-card {
  border: none;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  position: relative;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.featured-card .card-img-top {
  width: 100%;
  height: auto;
  border-radius: 10px 10px 0 0;
}

.featured-card .card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.8) 30%,
    rgba(0, 0, 0, 0.6) 50%,
    rgba(0, 0, 0, 0.2) 80%,
    rgba(0, 0, 0, 0) 100%
  );
  padding: 3rem 1rem 1rem;
  text-align: left;
  border-radius: 0 0 10px 10px;
}

.featured-card .card-overlay h3 {
  font-family: "Rajdhani", sans-serif;
  color: white;
  font-size: 2rem;
  margin-bottom: 0rem;
  text-transform: none;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  font-weight: 700;
}

/* Responsive font sizes for featured cards */
@media (min-width: 576px) {
  .featured-card .card-overlay h3 {
    font-size: 1.4rem;
  }
}

@media (min-width: 768px) {
  .featured-card .card-overlay h3 {
    font-size: 1.75rem;
  }
}

@media (min-width: 992px) {
  .featured-card .card-overlay h3 {
    font-size: 1.4rem;
  }
}

@media (min-width: 1200px) {
  .featured-card .card-overlay h3 {
    font-size: 1.75rem;
  }
}

.featured-content-section a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.featured-content-section a:hover .featured-card {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Footer */
footer {
  font-family: "Rajdhani", sans-serif;
}

footer h1,
footer h2,
footer h3,
footer h4,
footer h5,
footer h6 {
  font-family: "Rajdhani", sans-serif !important;
  font-weight: 500;
}

footer h5 {
  font-size: 1.55rem;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  font-family: "Rajdhani", sans-serif;
  text-decoration: none;
  transition: color 0.3s ease;
  color: #3988ce !important;
}

.footer-links a:hover {
  color: #fddf00 !important;
  text-decoration: underline !important;
}

/* Footer header links */
footer h5 a {
  color: white !important;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer h5 a:hover {
  color: #fddf00 !important;
  text-decoration: none;
}

/* I Want To Section */
.i-want-to-section {
  font-family: "Rajdhani", sans-serif;
  background-color: #263f77 !important;
}

.i-want-to-section h2 {
  font-family: "Source Serif 4", serif !important;
  font-size: 1.75rem;
}

@media (min-width: 576px) {
  .i-want-to-section h2 {
    font-size: 2rem;
  }
}

@media (min-width: 768px) {
  .i-want-to-section h2 {
    font-size: 2.25rem;
  }
}

@media (min-width: 992px) {
  .i-want-to-section h2 {
    font-size: 2.5rem;
  }
}

.i-want-to-section h6 {
  font-family: "Rajdhani", sans-serif;
}

/* I Want To Section Links */
.i-want-to-section .quick-link a {
  color: white !important;
  text-decoration: none !important;
  transition: color 0.3s ease;
}

.i-want-to-section .quick-link:hover a {
  color: #fddf00 !important;
  text-decoration: none !important;
}

/* Hide scrollbar in offcanvas menu */
.offcanvas-body {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.offcanvas-body::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

/* Header Mobile Layout */
@media (max-width: 991px) {
  .header-top-row {
    display: none;
  }

  .header-mobile-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
  }

  .header-mobile-fbi {
    font-family: "Rajdhani", sans-serif;
    font-size: 2rem;
    font-weight: bold;
    color: white;
    text-align: center;
  }

  .header-mobile-search {
    color: white;
    font-size: 1.25rem;
  }

  /* Hamburger Menu Icon Size */
  .header-mobile-row .fa-bars {
    font-size: 1.5rem;
  }
}

/* Desktop Hamburger Menu Icon Size */
.header-top-row .fa-bars {
  font-size: 1.5rem;
}

@media (min-width: 992px) {
  .header-mobile-row {
    display: none;
  }
}

/* Offcanvas Menu Styles */
.offcanvas-body .nav-link {
  transition: color 0.3s ease;
}

.offcanvas-body .nav-link:hover {
  color: #fddf00 !important;
}

.offcanvas-body .nav-link.text-warning {
  color: #fddf00 !important;
}

.offcanvas-body .nav-link.text-warning:hover {
  color: #fddf00 !important;
}

/* Search Input Placeholder Color */
.offcanvas-body .form-control::placeholder {
  color: rgba(255, 255, 255, 0.7) !important;
}

.offcanvas-body .form-control:-ms-input-placeholder {
  color: rgba(255, 255, 255, 0.7) !important;
}

.offcanvas-body .form-control::-ms-input-placeholder {
  color: rgba(255, 255, 255, 0.7) !important;
}

/* Offcanvas Divider Color */
.offcanvas-body hr {
  border-color: rgba(255, 255, 255, 1) !important;
}

/* Featured Content Section */
.featured-content-section h2 {
  font-family: "Source Serif 4", serif;
  font-weight: normal;
}
