/* 
 * template-hero-slider.css
 * Styles specific to the hero slider section on the homepage
 */

/* Hero Slider Section */
#heroSlider {
    position: relative;
    overflow: hidden;
    max-height: 600px;
  }
  
  #heroSlider .slide-img {
    height: 600px;
    object-fit: cover;
    filter: brightness(0.7); /* Slightly darkened for better text visibility */
  }
  
  /* Top-left Agency Identifier - fixed position, no glass effect */
  .top-left-agency-identifier {
    position: absolute;
    top: 30px;
    left: 30px;
    z-index: 100; /* Higher z-index to stay on top of all slides */
    opacity: 0; /* Start hidden and fade in via JS */
    transform: translateX(-20px); /* Start slightly off-screen */
    transition: all 0.8s ease;
  }
  
  .top-left-agency-identifier.fade-in {
    opacity: 1;
    transform: translateX(0);
  }
  
  /* Remove background from agency identifier, just keep text */
  .glass-effect-container {
    display: inline-block;
    background-color: transparent; /* No background */
    padding: 12px 20px;
    position: relative;
  }
  
  /* Agency identifier tagline in golden color with enhanced text shadow for visibility */
  .top-left-agency-identifier span {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent-gold, #FFD700); /* Golden color for tagline */
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.9), 0 0 5px rgba(0, 0, 0, 0.8); /* Stronger shadow for better visibility */
    font-family: 'Raleway', sans-serif;
    position: relative;
  }
  
  /* Add an underline for the agency title */
  .top-left-agency-identifier span::after {
    content: '';
    display: block;
    width: 70px;
    height: 2px;
    background-color: var(--accent-gold, #FFD700);
    margin-top: 5px;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
  }
  
  .top-left-agency-identifier .agency-subtitle {
    font-size: 0.9rem;
    color: #fff; /* Keep subtitle white */
    margin-top: 5px;
    margin-bottom: 0;
    font-weight: 400;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9), 0 0 5px rgba(0, 0, 0, 0.8); /* Stronger shadow for better visibility */
  }
  
  /* Glass Effect for Captions - even more transparent */
  .glass-effect {
    background-color: rgba(0, 0, 0, 0.25); /* Even more transparent background */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-bottom: 3px solid var(--accent-gold, #FFD700);
  }
  
  /* Carousel Caption */
  #heroSlider .carousel-caption {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    width: 100%;
    left: 0;
    right: 0;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
  }
  
  #heroSlider h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease 0.2s;
    font-family: 'Raleway', sans-serif;
    color: #fff;
  }
  
  /* Add subtle golden underline to headers */
  #heroSlider h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 2px;
    background-color: var(--accent-gold, #FFD700);
    margin: 10px auto 0;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
  }
  
  #heroSlider p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 25px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease 0.4s;
    color: #fff;
  }
  
  /* Enhanced button styles */
  #heroSlider .btn {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease 0.6s;
    font-weight: 600;
    text-transform: uppercase;
    padding: 10px 20px;
    border-radius: 30px;
    border: none;
    background-color: var(--accent-gold, #FFD700);
    color: #000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2), 0 0 15px rgba(255, 215, 0, 0.2);
  }
  
  #heroSlider .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25), 0 0 20px rgba(255, 215, 0, 0.3);
  }
  
  /* Agency Badge */
  .agency-badge {
    position: absolute;
    top: 30px;
    right: 30px;
    z-index: 10;
    background-color: var(--accent-gold, #FFD700);
    padding: 10px;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  }
  
  .badge-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  
  .badge-content span {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #000;
    line-height: 1.2;
  }
  
  /* Animation Classes */
  #heroSlider .carousel-item.zoom-in img {
    animation: subtle-zoom 7s forwards;
  }
  
  #heroSlider .carousel-item.active .carousel-caption.text-animate h2,
  #heroSlider .carousel-item.active .carousel-caption.text-animate p,
  #heroSlider .carousel-item.active .carousel-caption.text-animate .btn {
    opacity: 1;
    transform: translateY(0);
  }
  
  @keyframes subtle-zoom {
    from {
      transform: scale(1);
    }
    to {
      transform: scale(1.1);
    }
  }
  
  /* Carousel Controls with premium styling */
  #heroSlider .carousel-control-prev,
  #heroSlider .carousel-control-next {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s ease;
  }
  
  #heroSlider .carousel-control-prev {
    left: 20px;
  }
  
  #heroSlider .carousel-control-next {
    right: 20px;
  }
  
  #heroSlider:hover .carousel-control-prev,
  #heroSlider:hover .carousel-control-next {
    opacity: 0.8;
  }
  
  #heroSlider .carousel-control-prev:hover,
  #heroSlider .carousel-control-next:hover {
    background-color: var(--accent-gold, #FFD700);
    opacity: 1;
  }
  
  /* Carousel Indicators with gold accent */
  #heroSlider .carousel-indicators {
    bottom: 20px;
  }
  
  #heroSlider .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    border: none;
    margin: 0 5px;
    opacity: 1;
    transition: all 0.3s ease;
  }
  
  #heroSlider .carousel-indicators button.active {
    background-color: var(--accent-gold, #FFD700);
    width: 25px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
  }
  
  /* Responsive Adjustments */
  @media (max-width: 1199.98px) {
    #heroSlider h2 {
      font-size: 2.5rem;
    }
    
    .top-left-agency-identifier {
      top: 25px;
      left: 25px;
    }
    
    .glass-effect-container {
      padding: 10px 18px;
    }
    
    .top-left-agency-identifier span {
      font-size: 1.3rem;
    }
    
    .agency-badge {
      width: 70px;
      height: 70px;
      top: 25px;
      right: 25px;
    }
  }
  
  @media (max-width: 991.98px) {
    #heroSlider .slide-img {
      height: 500px;
    }
    
    #heroSlider h2 {
      font-size: 2.2rem;
    }
    
    #heroSlider p {
      font-size: 1.1rem;
    }
    
    .glass-effect-container {
      padding: 8px 15px;
    }
    
    .top-left-agency-identifier span {
      font-size: 1.2rem;
    }
    
    .top-left-agency-identifier {
      top: 20px;
      left: 20px;
    }
    
    .agency-badge {
      width: 60px;
      height: 60px;
      top: 20px;
      right: 20px;
    }
    
    .badge-content span {
      font-size: 0.7rem;
    }
    
    .top-left-agency-identifier .agency-subtitle {
      font-size: 0.8rem;
    }
  }
  
  @media (max-width: 767.98px) {
    #heroSlider .slide-img {
      height: 400px;
    }
    
    #heroSlider h2 {
      font-size: 1.8rem;
    }
    
    #heroSlider p {
      font-size: 1rem;
    }
    
    #heroSlider .btn {
      padding: 0.5rem 1.2rem;
      font-size: 0.9rem;
    }
    
    .top-left-agency-identifier {
      top: 15px;
      left: 15px;
    }
    
    .glass-effect-container {
      padding: 6px 12px;
    }
    
    .top-left-agency-identifier span {
      font-size: 1rem;
      letter-spacing: 1px;
    }
    
    .top-left-agency-identifier .agency-subtitle {
      font-size: 0.75rem;
    }
    
    .agency-badge {
      width: 50px;
      height: 50px;
      top: 15px;
      right: 15px;
    }
    
    .badge-content span {
      font-size: 0.6rem;
    }
  }
  
  @media (max-width: 575.98px) {
    #heroSlider .slide-img {
      height: 350px;
    }
    
    #heroSlider h2 {
      font-size: 1.6rem;
      margin-bottom: 10px;
    }
    
    #heroSlider p {
      font-size: 0.95rem;
      margin-bottom: 15px;
    }
    
    #heroSlider .carousel-caption {
      padding: 15px;
    }
    
    .top-left-agency-identifier span {
      font-size: 0.9rem;
    }
    
    .glass-effect-container {
      padding: 5px 10px;
    }
    
    .top-left-agency-identifier {
      top: 10px;
      left: 10px;
    }
    
    .top-left-agency-identifier .agency-subtitle {
      font-size: 0.7rem;
    }
    
    .agency-badge {
      width: 45px;
      height: 45px;
      top: 10px;
      right: 10px;
    }
    
    .badge-content span {
      font-size: 0.55rem;
    }
  }