/* Fallback/override styles for Blue Dolphin branding */
:root {
  --brand-primary: #08598e;
  --brand-secondary: #ffffff;
}

/* Header Styles */
header {
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
}

#top-menu-wrap {
  background-color: var(--brand-primary);
  padding: 12px 0;
  font-size: 13px;
  position: relative;
  z-index: 11;
}

#top-menu-wrap .sf-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: inline-flex;
  gap: 30px;
}

#top-menu-wrap .sf-menu li {
  display: inline-block;
}

#top-menu-wrap .sf-menu a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
}

#top-menu-wrap .sf-menu a:hover {
  color: #b0d9f7;
}

.utlity-wrap {
  text-align: right;
}

.utility-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: inline-flex;
  gap: 25px;
}

.utility-menu li {
  display: inline-block;
}

.utility-menu a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
}

.utility-menu a:hover {
  color: #b0d9f7;
}

.utility-menu i {
  margin-right: 5px;
}

/* Main header */
.header-seven header #header-inner {
  background-color: transparent;
  padding: 15px 0;
}

#header-left {
  display: flex;
  align-items: center;
}

#logo {
  width: 100%;
}

#logo img {
  height: 60px;
  width: auto;
}

.navbar {
  padding: 0;
}

.navbar-collapse {
  flex-basis: 100%;
}

.navbar-nav {
  width: 100%;
  justify-content: flex-end;
  align-items: center;
}

.navbar-nav .nav-link {
  color: white !important;
  padding: 0.5rem 1.2rem !important;
  font-weight: 500;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: #b0d9f7 !important;
}

.dropdown-menu {
  background-color: #f9f9f9;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border-radius: 0;
}

.dropdown-menu .nav-link {
  color: #333 !important;
  padding: 10px 15px !important;
  font-size: 16px;
}

.dropdown-menu .nav-link:hover {
  background-color: #f0f0f0;
  color: var(--brand-primary) !important;
}

.quicksearch {
  margin: 0 15px;
  flex: 0 0 auto;
  order: 1;
}

.quicksearch .input-group {
  max-width: 200px;
}

.quicksearch .input-group .form-control {
  padding: 8px 12px;
  font-size: 13px;
  border: 1px solid #ddd;
}

.quicksearch .input-group .btn {
  color: #333333;
  background: #ffffff;
  border: solid 1px #ddd;
  padding: 8px 12px;
}

.quicksearch .input-group .btn:hover {
  background-color: #f0f0f0;
}

.custom-toggler {
  border-color: rgba(255, 255, 255, 0.5);
}

.custom-toggler:focus {
  outline: none;
  box-shadow: none;
}

.custom-toggler .fas {
  color: white;
}

/* Hero/Video Container */
#video-container {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

#video-container .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 2;
}

#video-container .h-100 {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#video-container .d-flex {
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

#content-slider {
  width: 100%;
  position: relative;
  background: transparent;
}

#content-slider .carousel-inner {
  position: relative;
}

#content-slider .carousel-item {
  height: 500px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

#content-slider .carousel-caption {
  position: relative;
  bottom: auto;
  left: auto;
  right: auto;
  top: auto;
  background: transparent;
  padding: 0;
  width: 100%;
}

#content-slider .carousel-header {
  color: white;
  font-size: 48px;
  font-weight: 600;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  letter-spacing: 1px;
}

#content-slider .caption {
  color: white;
  font-size: 18px;
  margin-bottom: 30px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.carousel-control-prev,
.carousel-control-next {
  z-index: 4;
  top: 50%;
  transform: translateY(-50%);
  width: auto;
  background: transparent;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background: transparent;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-image: none;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-control-prev-icon::before,
.carousel-control-next-icon::before {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  border-style: solid;
}

.carousel-control-prev-icon::before {
  border-width: 10px 15px 10px 0;
  border-color: transparent white transparent transparent;
}

.carousel-control-next-icon::before {
  border-width: 10px 0 10px 15px;
  border-color: transparent transparent transparent white;
}

/* Override any missing theme styles */
.btn-default {
  background-color: var(--brand-primary);
  color: white;
  border-color: var(--brand-primary);
  padding: 12px 30px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 4px;
}

.btn-default:hover {
  background-color: #064570;
  border-color: #064570;
}

/* Ensure responsive images work */
.img-responsive {
  max-width: 100%;
  height: 177px !important;
  width: 275px !important;
  display: block;
}

/* General spacing fixes */
.container-fluid {
  padding-left: 15px;
  padding-right: 15px;
}

/* Navigation fixes */
.navbar-expand-lg .navbar-nav .nav-link {
  padding-right: 1rem;
  padding-left: 1rem;
}

/* Hide elements on mobile */
.hidden-xs {
  display: block;
}

/* Footer Styles */
#footer {
  background-color: #3a3a3a;
  color: #ccc;
  padding: 50px 0 0;
  border: none;
  box-shadow: none;
  outline: none;
}

#footer a {
  color: #ccc;
  text-decoration: none;
}

#footer a:hover {
  color: white;
  text-decoration: underline;
}

#ftlogo img {
  height: 80px;
  width: auto;
  margin-bottom: 20px;
  margin-left: 50px;
}

#footer-left {
  padding-bottom: 30px;
  padding-right: 30px;
  border: none;
  box-shadow: none;
  outline: none;
}

#footer-left p {
  margin-bottom: 0;
  line-height: 1.8;
  font-size: 12px;
  color: #ccc;
  border: none;
  box-shadow: none;
  outline: none;
}

#footer-left span {
  display: block;
  border: none;
  box-shadow: none;
  outline: none;
}

#footer-left .notranslate {
  display: block;
  line-height: 1.8;
  font-size: 12px;
  border: none;
  box-shadow: none;
  outline: none;
}

.nav4 {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
  border: none;
  box-shadow: none;
  outline: none;
}

.nav4 li {
  margin-bottom: 12px;
  border: none;
  box-shadow: none;
  outline: none;
}

.nav4 a {
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  text-shadow: 0 0 1px rgba(0, 0, 0, 0.3);
  border: none;
  box-shadow: none;
  outline: none;
}

.nav4 a:hover {
  color: white;
}

#footer-right {
  padding-bottom: 30px;
  padding-left: 15px;
  border: none;
  box-shadow: none;
  outline: none;
}

.newsletter {
  margin-bottom: 30px;
  border: none;
  box-shadow: none;
  outline: none;
}

.newsletter .title {
  color: white;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 15px;
  font-weight: 600;
  border: none;
  box-shadow: none;
  outline: none;
}

.newsletter .form-floating {
  margin-bottom: 10px;
  border: none;
  box-shadow: none;
  outline: none;
}

.newsletter .form-control {
  background-color: white;
  border: 1px solid #555;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 13px;
  box-shadow: none;
  outline: none;
}

.newsletter .form-control:focus {
  background-color: white;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 0.2rem rgba(8, 89, 142, 0.25);
  outline: none;
}

.newsletter label {
  color: #999;
  font-size: 12px;
  border: none;
  box-shadow: none;
  outline: none;
}

.newsletter .btn {
  width: 100%;
  margin-top: 5px;
  border: none;
  box-shadow: none;
  outline: none;
}

#social {
  margin-bottom: 20px;
  border: none;
  box-shadow: none;
  outline: none;
}

#social h6 {
  color: white;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 15px;
  border: none;
  box-shadow: none;
  outline: none;
}

.socialmediabar {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 15px;
  border: none;
  box-shadow: none;
  outline: none;
}

.socialmediabar li {
  display: inline-block;
  border: none;
  box-shadow: none;
  outline: none;
}

.socialmediabar a {
  color: white;
  font-size: 20px;
  transition: color 0.3s ease;
  border: none;
  box-shadow: none;
  outline: none;
}

.socialmediabar a:hover {
  color: var(--brand-primary);
}

#copyright {
  background-color: black;
  padding: 5px;
  color: #999;
  font-size: 12px;
  border: none;
  box-shadow: none;
  outline: none;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

#copyright .copyright {
  margin: 0;
  line-height: 1.6;
  color: white;
  font-size: 15px;
  border: none;
  text-decoration: none;
  box-shadow: none;
  outline: none;
  max-width: 100%;
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: break-word;
  overflow-x: hidden;
}

#smlogin {
  text-align: right;
  padding: 10px 15px;
  background-color: #2a2a2a;
}

#admin-button a {
  color: #666;
  font-size: 14px;
  text-decoration: none;
}

#admin-button a:hover {
  color: #999;
}

.contact-info {
  margin-left: 60px;
}

/* Hide quick search modal and everything after footer */
#qs-modal {
  display: none !important;
  visibility: hidden !important;
  position: fixed !important;
  height: 0 !important;
  width: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  z-index: -9999 !important;
}

#qs-modal-body {
  display: none !important;
}

/* Ensure body and html don't have extra space */
html,
body {
  /* background-color: #2a2a2a; */
  margin: 0;
  padding: 0;
  min-height: 100%;
  border: none;
  box-shadow: none;
  outline: none;
}

body {
  display: flex;
  flex-direction: column;
  border: none;
  box-shadow: none;
  outline: none;
}

#footer {
  margin-top: auto;
  border: none;
  box-shadow: none;
  outline: none;
}

.main-content {
  margin-bottom: 40px;
  border: none;
  box-shadow: none;
  outline: none;
}

@media (max-width: 768px) {
  .hidden-xs {
    display: none;
  }

  #content-slider .carousel-header {
    font-size: 28px;
  }

  #content-slider .caption {
    font-size: 14px;
  }

  #footer-left,
  #footer-right {
    margin-bottom: 20px;
  }
}
