.navbar-brand {
  font-family: 'Stange';
  font-size: 30px;
  color: var(--bs-primary);
}

.navbar-brand:hover, .navbar-brand:focus {
  color: #45BDF6;
}

.navbar-nav {
  --bs-nav-link-padding-x: 0;
  --bs-nav-link-padding-y: 0.5rem;
  --bs-nav-link-color: var(--bs-primary);
  --bs-nav-link-hover-color: var(--bs-secondary);
  --bs-nav-link-disabled-color: var(--bs-primary);
  display: flex;
  flex-direction: column;
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}

.navbar-nav .nav-link.active, .navbar-nav .nav-link.show {
  color: var(--bs-primary);
}

.underline:after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 4px;
  border-radius: 5px;
  background: #5de0d8;
  z-index: 0;
}

.underline_fin:after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 4px;
  border-radius: 5px;
  background: #ccdfe9;
  z-index: 0;
}

.btn-secondary:hover {
  color: var(--bs-btn-hover-color);
  background-color: var(--bs-btn-active-bg);
  border-color: var(--bs-btn-hover-border-color);
}

.video:hover {
  background-color: inherit;
  color: var(--bs-secondary);
  border: none;
}

.video {
  background-color: initial;
  color: var(--bs-primary);
  border: none;
}

.bg-warning {
  --bs-bg-opacity: 1;
  background-color: rgba(var(--bs-success-rgb), var(--bs-bg-opacity)) !important;
}

.underline_fin {
  position: relative;
}

#mainNav .navbar-nav > li.nav-item > a.nav-link.active {
  position: relative;
  padding-bottom: 5px;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 70%;
  height: 3px;
  background-color: var(--bs-success);
  border-radius: 10px;
  transform: translateX(-50%);
}

#mainNav {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  transition: background 0.4s ease-in-out;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

@media (min-width: 350px) {
  #mainNav.navbar-shrink {
    border-bottom: 1px solid rgba(45,45,45,.1);
    /*background-color: var(--bs-body-bg);*/
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.3s ease-in-out;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
  }
}

/* Ensure the container stays within the column */

.image-container {
  position: relative;
  width: 100%;
  padding-top: 80%;
  background: center/cover no-repeat;
  overflow: hidden;
  border-radius: 0px;
}

/* Black overlay effect */

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0);
  transition: background 0.5s ease-in-out;
}

/* Hover effect: overlay turns black with 50% transparency */

.image-container:hover .overlay {
  background: linear-gradient(to bottom, rgba(100, 100, 100, 0.4) 20%, rgba(0, 0, 0, 0.65) 40%, rgba(0, 0, 0, 0.85) 100%);
}

/* Position text at the bottom-left */

.content {
  position: absolute;
  bottom: 20px;
  left: 20px;
  color: white;
  text-align: left;
  z-index: 2;
  opacity: 0;
  transform: translateX(-100px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  left: 20px;
  right: 20px;
  max-width: calc(100% - 40px);
}

/* Hover effect: Text fades in from left to right */

.image-container:hover .content {
  opacity: 1;
  transform: translateX(0);
}

/* Button Group - Positioned at the bottom right */

.button-group {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
  gap: 10px;
  z-index: 3;
  opacity: 0;
  transform: translateX(100px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Hover effect: Buttons fade in from right to left */

.image-container:hover .button-group {
  opacity: 1;
  transform: translateX(0);
}

/* Button Styling */

.btn-icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: none;
  background-color: var(--bs-secondary);
  color: var(--bs-primary);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, transform 0.3s ease;
}

/* Hover effect for buttons */

.btn-icon:hover {
  background-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
}

.btn-icon i {
  color: var(--bs-primary);
  font-size: 28px;
}

.btn-icon:hover i {
  color: rgba(255, 255, 255, 0.8);
}

/* For medium screens and smaller (up to 768px) */

@media (max-width: 767.98px) {
  .content {
    /*left: 15px;*/
    /*right: 15px;*/
    /*bottom: 15px;*/
    /*max-width: calc(100% - 30px);*/
  }
}

@media (max-width: 767.98px) {
  .content h1 {
    font-size: 2.5rem !important;
  }
}

@media (max-width: 767.98px) {
  .content p {
    /*font-size: 1rem;*/
  }
}

@media (max-width: 767.98px) {
  .button-group {
    /*right: 15px;*/
    /*bottom: 15px;*/
  }
}

/* For extra-small screens (up to 575.98px) */

@media (max-width: 575.98px) {
  .content {
    /*left: 10px;*/
    /*right: 10px;*/
    /*bottom: 10px;*/
    /*max-width: calc(100% - 20px);*/
  }
}

@media (max-width: 575.98px) {
  .content h1 {
    font-size: 1.7rem !important;
  }
}

@media (max-width: 575.98px) {
  .content p {
    /*font-size: 0.9rem;*/
  }
}

@media (max-width: 575.98px) {
  .button-group {
    /*right: 10px;*/
    /*bottom: 10px;*/
  }
}

.flying-svg {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 80px;
  height: auto;
  opacity: 0;
  transform: translateX(100px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.image-container:hover .flying-svg {
  opacity: 1;
  transform: translateX(0);
}

p a {
  text-decoration: none !important;
}


