.dropdown-menu {
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    background-color: #161616;
    color: white;
}

.training-title {
  color: #E3B25A !important;
  font-weight: 600;
}

.card-background {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  cursor: pointer;
  min-height: 280px;
  margin-top: 8px; 
  margin-bottom: 8px; 
  transition: transform 0.3s ease;
  border: 1px solid transparent; 
}

.card-background:hover {
  transform: translateY(-5px);
}

.header-image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  padding: 2px; 
}

.background-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
  border-radius: 0.5rem; 
}

.col-lg-4:first-child .card-background {
  height: calc(100% - 4px); 
  margin-top: 8px;
  margin-bottom: 8px;
}

.col-lg-4:nth-child(2) {
  padding-left: 10px; 
  padding-right: 10px; 
}

.col-lg-4 {
  padding-top: 5px; 
  padding-bottom: 5px; 
}

.hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 4; 
  pointer-events: none; 
}

.info-text {
  color: white;
  font-size: 1.25rem;
  font-weight: 500;
  padding: 10px 20px;
  border: 2px solid white;
  border-radius: 5px;
}

.card-background:hover .hover-overlay {
  opacity: 1;
}

.card-background:hover .background-image {
  transform: scale(1.05);
}

.z-index-2 {
  z-index: 2;
}

.z-index-3 {
  z-index: 3;
  position: relative;
}

.mask {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: opacity 0.15s ease;
}

.card-background:hover .mask {
  opacity: 0.75;
}

.bg-gradient-dark {
  background-image: linear-gradient(195deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.9));
}

.border-radius-xl {
  border-radius: 0.75rem;
}

.card-body {
  padding: 1.5rem;
}

.card-footer {
  padding: 0.5rem 1.5rem 1.5rem;
}

.text-xs {
  font-size: 0.75rem;
}

.btn-white {
  color: #161616;
  background-color: #fff;
  border-color: #fff;
  transition: all 0.3s ease;
}

.btn-white:hover {
  background-color: rgba(255, 255, 255, 0.9);
  color: #000;
  transform: translateY(-2px);
}

.training-icon {
  font-size: 2rem;
}

.mt-7 {
  margin-top: 0.75rem !important;
}

.mt-4 {
  margin-top: 16px !important; 
}

.cursor-pointer {
  cursor: pointer;
}

.px-4 {
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
}

.row.mb-5 {
  margin-bottom: 2.5rem !important;
}

.container-xl {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 15px;
}

.row.justify-content-center {
  width: 100%;
  margin: 0 auto;
}

.flyer-wrapper {
  width: 77%;
  margin: 0 auto;
  max-width: 1600px;
}

.flyer-container {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  margin: 3rem 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  max-height: 400px;
  width: 100%;
}

.flyer-image {
  width: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  max-height: 400px;
}

.flyer-container:hover .flyer-image {
  transform: scale(1.02);
}

.flyer-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0,0,0,0.8) 20%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0) 100%);
  display: flex;
  align-items: center;
}

.flyer-content {
  padding: 2rem;
  color: white;
  max-width: 50%;
}

.flyer-content h3 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.flyer-content p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.card-link {
  color: inherit;
  display: block;
  height: 100%;
}

.card-link:hover {
  text-decoration: none;
  color: inherit;
}

.card-link:hover .training-title {
  color: #ffffff !important;
}

.card-link .card-background {
  height: 100%;
}

.intro-divider {
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #EDB115, #F4C430);
  margin: 2rem auto;
  border-radius: 2px;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1200px) {
  .flyer-wrapper {
    width: 85%;
  }
}

@media (max-width: 992px) {
  .px-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .card-background {
    margin-bottom: 15px;
  }
  
  .mt-4 {
    margin-top: 16px !important;
  }
  
  .col-lg-4:nth-child(2) {
    padding-left: 8px; 
    padding-right: 8px; 
  }
  
  .flyer-wrapper {
    width: 90%;
  }
  
  .flyer-content {
    max-width: 70%;
  }
  
  .flyer-content h3 {
    font-size: 1.75rem;
  }
}

@media (max-width: 768px) {
  .card-background {
    min-height: 220px;
    margin-bottom: 10px;
  }
  
  .info-text {
    font-size: 1rem;
  }
  
  .mt-4 {
    margin-top: 12px !important;
  }
  
  .col-lg-4 {
    padding-top: 3px;
    padding-bottom: 3px;
  }
  
  .col-lg-4:nth-child(2) {
    padding-left: 6px; 
    padding-right: 6px; 
  }
  
  .flyer-wrapper {
    width: 95%;
  }
  
  .flyer-container {
    margin: 2rem 0;
    max-height: 300px;
  }
  
  .flyer-image {
    max-height: 300px;
  }
  
  .flyer-overlay {
    background: linear-gradient(to right, rgba(0,0,0,0.8) 30%, rgba(0,0,0,0.4) 80%, rgba(0,0,0,0.2) 100%);
  }
  
  .flyer-content {
    max-width: 90%;
    padding: 1.5rem;
  }
  
  .flyer-content h3 {
    font-size: 1.5rem;
  }
  
  .flyer-content p {
    font-size: 1rem;
  }
}

@media (min-width: 1600px) {
  .col-lg-4 {
    padding-left: 20px;
    padding-right: 20px;
  }
  
  .col-lg-4:nth-child(2) {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .container-xl {
    max-width: 1500px;
  }
}
