/* Add CSS variable for viewport height at the top of the file */
:root {
    --vh: 1vh;
    --header-height: 80px;
    --header-height-mobile: 60px;
    --header-bg-color: #003c7a;
    --video-bg-color: #003c7a;
    --slider-transition-duration: 0.6s;
    --slider-transition-timing: cubic-bezier(0.45, 0, 0.25, 1);
  }
  
  /* Video Slider Container */
  .hero-video-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
  }
  
  .hero-video-slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform var(--slider-transition-duration) var(--slider-transition-timing);
    -webkit-transition: -webkit-transform var(--slider-transition-duration) var(--slider-transition-timing);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    perspective: 1000px;
    -webkit-perspective: 1000px;
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
  }
  
  .hero-video-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    z-index: 2;
  }
  
  /* Ensure videos maintain portrait orientation */
  .hero-video-slide video {
    height: 100%;
    width: auto;
    max-height: 100%;
    object-fit: cover;
    position: relative;
    opacity: 0; /* Start with opacity 0 and fade in when loaded */
    transition: opacity 0.5s ease;
    -webkit-transition: opacity 0.5s ease;
    margin: 0 auto;
    display: block;
    transform: translate3d(0, 0, 0); /* Hardware acceleration */
    -webkit-transform: translate3d(0, 0, 0);
    pointer-events: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }
  
  /* Force portrait orientation for landscape videos */
  .hero-video-slide video.landscape {
    width: 100%;
    height: auto;
    object-fit: cover;
  }
  
  /* Navigation Controls */
  .hero-slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 10;
    pointer-events: none;
    transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
  }
  
  .hero-slider-arrow {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;
    pointer-events: auto;
    color: white;
    font-size: 24px;
    border: none;
    outline: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
  }
  
  .hero-slider-arrow:hover {
    background-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.1) translateZ(0);
    -webkit-transform: scale(1.1) translateZ(0);
  }
  
  .hero-slider-arrow:active {
    transform: scale(0.95) translateZ(0);
    -webkit-transform: scale(0.95) translateZ(0);
  }
  
  .hero-slider-arrow.prev {
    left: 20px;
  }
  
  .hero-slider-arrow.next {
    right: 20px;
  }
  
  /* Slider Indicators */
  .hero-slider-indicators {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 10;
  }
  
  .hero-slider-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  }
  
  .hero-slider-indicator.active {
    background-color: white;
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  }
  
  /* Responsive adjustments */
  @media (max-width: 768px) {
    .hero-slider-controls {
      bottom: 30%;
    }
    
    .hero-slider-arrow {
      width: 40px;
      height: 40px;
      font-size: 18px;
    }
  }
  
  .hero-video-section {
      position: relative;
      width: 100%;
      height: calc(100vh - var(--header-height)); /* Account for header height */
      height: calc(var(--vh, 1vh) * 100 - var(--header-height)); /* Use CSS variable for better mobile support */
      overflow: hidden;
      display: flex;
      justify-content: center;
      align-items: center;
      background-color: var(--light-bg);
      padding: 0;
      margin-top: var(--header-height); /* Add margin to push content below header */
      box-sizing: border-box; /* Ensure padding is included in height calculation */
      min-height: 500px; /* Minimum height to ensure content visibility */
      z-index: 1; /* Ensure proper stacking context */
  }
  
  .hero-video-container {
    position: relative;
    height: 100%;
      width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
      background-color: var(--video-bg-color);
    /* Enhanced background with gradient and beauty-themed pattern */
    background-image: 
        linear-gradient(135deg, rgba(0, 60, 122, 0.9) 0%, rgba(0, 77, 153, 0.9) 100%);
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
      border-radius: 0 0 12px 12px; /* Rounded corners only at the bottom for seamless header connection */
    transition: transform 0.3s ease;
    /* Add a subtle inner border */
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-top: none; /* Remove top border for seamless header connection */
  }
  
  /* Beauty-themed decorative elements */
  .hero-video-container:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
      radial-gradient(circle at center, transparent 30%, rgba(255, 240, 245, 0.5) 100%),
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cg fill='%23FFC0D3' fill-opacity='0.08'%3E%3Cpath d='M20 3.5c-1.4 0-2.5 1.1-2.5 2.5s1.1 2.5 2.5 2.5 2.5-1.1 2.5-2.5-1.1-2.5-2.5-2.5zm0 28c-1.4 0-2.5 1.1-2.5 2.5s1.1 2.5 2.5 2.5 2.5-1.1 2.5-2.5-1.1-2.5-2.5-2.5zm18-14c-1.4 0-2.5 1.1-2.5 2.5s1.1 2.5 2.5 2.5 2.5-1.1 2.5-2.5-1.1-2.5-2.5-2.5zm-36 0c-1.4 0-2.5 1.1-2.5 2.5s1.1 2.5 2.5 2.5 2.5-1.1 2.5-2.5-1.1-2.5-2.5-2.5z'/%3E%3C/g%3E%3C/svg%3E");
    z-index: 1;
    pointer-events: none;
  }
  
  /* Add decorative elements to the background */
  .hero-video-container:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
      radial-gradient(circle at 20% 30%, rgba(255, 133, 162, 0.1) 0%, transparent 25%),
      radial-gradient(circle at 80% 70%, rgba(255, 192, 211, 0.1) 0%, transparent 25%),
      /* Beauty-themed decorative elements */
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='%23FF85A2' fill-opacity='0.05'%3E%3Cpath d='M30 20c-5.5 0-10 4.5-10 10s4.5 10 10 10 10-4.5 10-10-4.5-10-10-10zm0 18c-4.4 0-8-3.6-8-8s3.6-8 8-8 8 3.6 8 8-3.6 8-8 8z'/%3E%3Cpath d='M30 25c-2.8 0-5 2.2-5 5s2.2 5 5 5 5-2.2 5-5-2.2-5-5-5zm0 8c-1.7 0-3-1.3-3-3s1.3-3 3-3 3 1.3 3 3-1.3 3-3 3z'/%3E%3C/g%3E%3C/svg%3E");
    z-index: 1;
    pointer-events: none;
    opacity: 0.8;
  }
  
  .hero-video-container video {
    height: 100%;
      width: 100%;
    max-height: 100%;
      object-fit: cover; /* Ensures video covers the entire container */
    z-index: 2;
    position: relative;
      opacity: 1; /* Make video visible by default */
    transition: opacity 0.5s ease;
  }
  
  .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 240, 245, 0.2));
    z-index: 3;
    pointer-events: none;
  }
  
  .hero-video-container .position-absolute {
    z-index: 2;
    max-width: 800px;
    width: 90%;
  }
  
  .hero-video-container h1 {
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  }
  
  .hero-video-container .lead {
    font-size: 1.25rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    max-width: 700px;
    margin: 0 auto;
  }
  
  .video-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 15px;
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);
    border-radius: 30px;
    transition: all 0.3s ease;
    opacity: 0.7;
    box-shadow: 0 4px 15px rgba(255, 133, 162, 0.2);
    align-items: center;
    border: 1px solid rgba(255, 192, 211, 0.3);
  }
  
  .hero-video-container:hover .video-controls {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
  }
  
  .control-btn {
    background-color: rgba(255, 133, 162, 0.2);
    color: var(--primary-color);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(255, 133, 162, 0.1);
  }
  
  .control-btn:hover {
    background-color: var(--primary-color);
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(255, 133, 162, 0.4);
    color: white;
  }
  
  .control-btn i {
    font-size: 1rem;
  }
  
  .video-time {
    color: var(--text-color);
    font-size: 0.9rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    min-width: 40px;
    text-align: center;
    text-shadow: none;
  }
  
  .video-progress-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: rgba(255, 255, 255, 0.5);
    z-index: 3;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
  }
  
  .hero-video-container:hover .video-progress-container {
    height: 8px;
    background-color: rgba(255, 255, 255, 0.7);
  }
  
  .video-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    width: 0;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px rgba(255, 133, 162, 0.5);
  }
  
  /* Add a subtle glow effect to the video container */
  @keyframes subtle-glow {
    0% {
      box-shadow: 0 10px 30px rgba(255, 133, 162, 0.15);
    }
    50% {
      box-shadow: 0 15px 40px rgba(255, 133, 162, 0.25);
    }
    100% {
      box-shadow: 0 10px 30px rgba(255, 133, 162, 0.15);
    }
  }
  
  /* Add a subtle shimmer effect to the background */
  @keyframes subtle-shimmer {
    0% {
      background-position: 0% 0%;
    }
    100% {
      background-position: 100% 100%;
    }
  }
  
  .hero-video-container {
    animation: 
      subtle-glow 4s infinite alternate,
      subtle-shimmer 15s infinite alternate;
    background-size: 100% 100%, 80px 80px, 40px 40px;
    background-position: 0 0;
  }
  
  /* Media queries for responsive design */
  @media (min-width: 1200px) {
    .hero-video-container {
        width: 100%;
        max-width: 100%; /* Allow full width on large screens */
      }
      
      .hero-video-section {
        height: calc(100vh - var(--header-height)); /* Account for header height */
        height: calc(var(--vh, 1vh) * 100 - var(--header-height)); /* Use CSS variable for better support */
        min-height: 600px; /* Ensure minimum height */
        margin-top: var(--header-height); /* Add margin to push content below header */
    }
  }
  
  @media (min-width: 1600px) {
    .hero-video-container {
        max-width: 100%; /* Full width for extra-large screens */
    }
    
    .hero-video-section {
        height: calc(100vh - var(--header-height)); /* Account for header height */
        height: calc(var(--vh, 1vh) * 100 - var(--header-height)); /* Use CSS variable for better support */
        min-height: 700px; /* Larger minimum height for bigger screens */
        margin-top: var(--header-height); /* Add margin to push content below header */
      }
  }
    
  /* Responsive adjustments for mobile devices */
  @media (max-width: 767px) {
    .hero-video-slide video {
      width: 100%;
      height: auto;
      object-fit: cover;
      object-position: center;
    }
    
    .hero-video-slide video.landscape {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    
    .hero-slider-controls {
      bottom: 30%;
    }
    
    .hero-slider-arrow {
      width: 40px;
      height: 40px;
      font-size: 18px;
    }
    
    .hero-video-section {
      height: calc(100vh - var(--header-height-mobile)); /* Account for smaller header on mobile */
      height: calc(var(--vh, 1vh) * 100 - var(--header-height-mobile)); /* Use CSS variable for better mobile support */
      min-height: 500px; /* Ensure minimum height on mobile */
      margin-top: var(--header-height-mobile); /* Add margin to push content below header */
    }
    
    .video-controls {
      bottom: 15px;
      padding: 8px 15px;
    }
    
    .control-btn {
      width: 32px;
      height: 32px;
    }
    
    .video-time {
      font-size: 0.8rem;
    }
  }
  
  /* Video Placeholder and Loading Animation */
  .video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #FFF9FB;
    opacity: 1;
    transition: opacity 0.5s ease;
    overflow: hidden;
  }
  
  .placeholder-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    filter: blur(3px);
    transition: all 0.5s ease;
  }
  
  /* Beauty-themed decorative elements for placeholder */
  .video-placeholder:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
      radial-gradient(circle at 30% 30%, rgba(255, 133, 162, 0.2) 0%, transparent 30%),
      radial-gradient(circle at 70% 70%, rgba(255, 192, 211, 0.2) 0%, transparent 30%);
    z-index: 1;
    animation: pulse-glow 3s infinite alternate;
  }
  
  /* Floating beauty elements */
  .video-placeholder:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
      radial-gradient(circle at 20% 40%, rgba(255, 133, 162, 0.4) 0%, rgba(255, 133, 162, 0) 5%),
      radial-gradient(circle at 80% 60%, rgba(255, 192, 211, 0.4) 0%, rgba(255, 192, 211, 0) 5%),
      radial-gradient(circle at 40% 70%, rgba(255, 133, 162, 0.3) 0%, rgba(255, 133, 162, 0) 4%),
      radial-gradient(circle at 60% 30%, rgba(255, 192, 211, 0.3) 0%, rgba(255, 192, 211, 0) 4%);
    background-size: 120% 120%;
    z-index: 2;
    animation: float-elements 15s infinite alternate ease-in-out;
    opacity: 0.7;
  }
  
  .loading-animation {
    position: relative;
    z-index: 6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(255, 133, 162, 0.2);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 192, 211, 0.3);
    animation: pulse 2s infinite alternate;
  }
  
  .loading-animation p {
    margin-top: 15px;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.9rem;
  }
  
  .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 192, 211, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
  }
  
  @keyframes spin {
    to {
      transform: rotate(360deg);
    }
  }
  
  @keyframes pulse {
    0% {
      transform: scale(1);
      box-shadow: 0 5px 15px rgba(255, 133, 162, 0.2);
    }
    100% {
      transform: scale(1.05);
      box-shadow: 0 5px 20px rgba(255, 133, 162, 0.3);
    }
  }
  
  @keyframes pulse-glow {
    0% {
      opacity: 0.5;
    }
    100% {
      opacity: 0.8;
    }
  }
  
  @keyframes float-elements {
    0% {
      background-position: 0% 0%;
    }
    50% {
      background-position: 100% 100%;
    }
    100% {
      background-position: 0% 100%;
    }
  }
  
  /* Video loaded state */
  .video-loaded .video-placeholder {
    opacity: 0;
    pointer-events: none;
  }
  
  .video-loaded video {
    opacity: 1;
  }
  
  /* Video paused state with beauty-themed animation */
  .video-paused .video-placeholder {
    opacity: 0.95;
    background: linear-gradient(135deg, rgba(255, 240, 245, 0.9) 0%, rgba(255, 245, 250, 0.9) 100%);
  }
  
  .video-paused .loading-animation {
    display: none;
  }
  
  .video-paused .placeholder-image {
    filter: blur(0);
    opacity: 0.9;
    transform: scale(1.02);
  }
  
  /* Add a play button overlay when paused */
  .video-paused .video-placeholder:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    z-index: 7;
    box-shadow: 0 5px 20px rgba(255, 133, 162, 0.3);
    animation: pulse 2s infinite alternate;
  }
  
  .video-paused .video-placeholder:after {
    content: '\f04b';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--primary-color);
    font-size: 30px;
    z-index: 8;
  }
  
  /* Video error state */
  .video-error .video-placeholder {
    opacity: 1;
  }
  
  .video-error .loading-animation {
    background-color: rgba(255, 255, 255, 0.9);
  }
  
  .video-error .loading-animation p {
    color: #d63384;
  }
  
  .video-error .spinner {
    display: none;
  }
  
  .video-error .loading-animation:before {
    content: '!';
    font-size: 24px;
    font-weight: bold;
    color: #d63384;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid #d63384;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Network Interruption Loader */
  .network-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 249, 251, 0.5); /* More transparent background */
    backdrop-filter: blur(3px); /* Subtle blur */
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
  }
  
  .video-loading .network-loader {
    opacity: 1;
    pointer-events: auto;
  }
  
  .loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 15px 25px;
    border-radius: 30px;
    box-shadow: 0 5px 15px rgba(255, 133, 162, 0.15);
    border: 1px solid rgba(255, 192, 211, 0.2);
    transform: translateY(0);
    animation: float 3s infinite alternate ease-in-out;
  }
  
  @keyframes float {
    0% {
      transform: translateY(0);
    }
    100% {
      transform: translateY(-10px);
    }
  }
  
  .loader-spinner {
    width: 30px;
    height: 30px;
    position: relative;
    margin-bottom: 12px;
  }
  
  .loader-spinner:before,
  .loader-spinner:after {
    content: '';
    position: absolute;
    border-radius: 50%;
  }
  
  .loader-spinner:before {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    animation: spin 1.5s infinite ease;
    opacity: 0.7;
  }
  
  .loader-spinner:after {
    width: 70%;
    height: 70%;
    background: rgba(255, 255, 255, 0.9);
    top: 15%;
    left: 15%;
    animation: pulse 1.5s infinite alternate ease-in-out;
  }
  
  .loader-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary-color);
    text-align: center;
    max-width: 200px;
    animation: fade 1.5s infinite alternate;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  @keyframes fade {
    from {
      opacity: 0.5;
    }
    to {
      opacity: 1;
    }
  }
  
  /* Modify existing video placeholder to be hidden by default */
  .video-placeholder {
    display: none;
  }
  
  /* Only show the video placeholder in error state */
  .video-error .video-placeholder {
    display: flex;
    opacity: 1;
  }
  
  /* Ensure video is visible by default */
  .hero-video-container video {
    opacity: 1;
    transition: opacity 0.3s ease;
  }
  
  /* When loading, make video slightly visible but blurred */
  .video-loading .hero-video-container video {
    opacity: 0.7;
    filter: blur(2px);
  }
  
  /* When error occurs, hide video */
  .video-error .hero-video-container video {
    opacity: 0;
  }
    
  /* Video Error Handling */
  .video-error-message {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 18px;
    z-index: 5;
  }
  
  .video-error-message p {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 15px 25px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
  }
  
  /* Add a subtle fade effect for slide transitions */
  @keyframes fadeIn {
    from { opacity: 0.7; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
  }
  
  @-webkit-keyframes fadeIn {
    from { opacity: 0.7; -webkit-transform: scale(0.98); }
    to { opacity: 1; -webkit-transform: scale(1); }
  }
  
  .hero-video-slide:nth-child(1) {
    animation: fadeIn 0.5s ease-in-out;
    -webkit-animation: fadeIn 0.5s ease-in-out;
  }
  
  /* Responsive adjustments for smaller screens */
  @media (max-width: 576px) {
    .hero-slider-arrow {
      width: 36px;
      height: 36px;
      font-size: 16px;
    }
    
    .hero-slider-indicators {
      bottom: 10px;
    }
    
    .hero-slider-indicator {
      width: 8px;
      height: 8px;
    }
    
    .video-controls {
      bottom: 15px;
      padding: 8px 15px;
    }
    
    .control-btn {
      width: 32px;
      height: 32px;
    }
    
    .video-time {
      font-size: 0.8rem;
    }
  }
    
  /* Video interaction overlay for better touch/click handling */
  .video-interaction-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4; /* Above video but below controls */
    cursor: pointer;
    background-color: transparent;
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
    touch-action: manipulation; /* Improve touch behavior */
  }

  /* Prevent double-tap zoom on iOS */
  .video-interaction-overlay {
    touch-action: manipulation;
  }

  /* Play button overlay for autoplay restrictions */
  .video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
  }

  .video-play-button i {
    font-size: 30px;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  }

  .video-play-button:hover {
    background-color: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%) scale(1.1);
  }

  .video-play-button:active {
    transform: translate(-50%, -50%) scale(0.95);
  }

  /* Visual feedback for tap/click */
  .hero-video-slide.tapped .video-interaction-overlay {
    background-color: rgba(255, 255, 255, 0.1);
    animation: tap-feedback 0.3s ease-out;
  }

  @keyframes tap-feedback {
    0% { background-color: rgba(255, 255, 255, 0.2); }
    100% { background-color: rgba(255, 255, 255, 0); }
  }

  @-webkit-keyframes tap-feedback {
    0% { background-color: rgba(255, 255, 255, 0.2); }
    100% { background-color: rgba(255, 255, 255, 0); }
  }

  @media (max-width: 767px) {
    .video-play-button {
      width: 60px;
      height: 60px;
    }
    
    .video-play-button i {
      font-size: 24px;
    }
  }
  
  
  