/* Modern Hero Banner CSS - Enhanced with Responsive Techniques */

:root {
  --hrv-gradient: linear-gradient(84.25deg, #F26522 0%, #F7941D 100%);
  --hrv-text-light: #ffffff;
  --hrv-text-dark: #1A1A1A;
  --hrv-transition-fast: 0.4s ease;
  --hrv-blue: #0072BC;
  --hrv-light-blue: #00A0E3;
  --hrv-green: #39B54A;
  
  --hrv-text-xs: clamp(0.875rem, 2vw + 0.5rem, 1.1rem);    /* 14px - 17.6px */
  --hrv-text-sm: clamp(0.875rem, 2vw + 0.5rem, 1rem);      /* 14px - 16px */
  --hrv-text-md: clamp(1rem, 2.5vw + 0.5rem, 1.18rem);     /* 16px - 18.88px */
  --hrv-text-lg: clamp(1.25rem, 3vw + 0.8rem, 1.563rem);   /* 20px - 25px */
  --hrv-text-xl: clamp(1.5rem, 4vw + 1rem, 1.953rem);      /* 24px - 31.25px */
  --hrv-text-2xl: clamp(1.75rem, 5vw + 1.2rem, 2.441rem);  /* 28px - 39px */
  --hrv-text-3xl: clamp(2rem, 6vw + 1.5rem, 3.052rem);     /* 32px - 48.8px */
  --hrv-text-4xl: clamp(2.5rem, 7vw + 1.8rem, 3.215rem);   /* 40px - 61px */
  
  /* Line heights for better readability */
  --hrv-leading-tight: 1.1;
  --hrv-leading-normal: 1.4;
  --hrv-leading-relaxed: 1.6;
  
  /* Fluid Spacing using min() function */
  --hrv-space-xs: min(0.5rem, 2vw);      /* 8px with viewport scaling */
  --hrv-space-sm: min(0.75rem, 3vw);     /* 12px with viewport scaling */
  --hrv-space-md: min(1rem, 4vw);        /* 16px with viewport scaling */
  --hrv-space-lg: min(1.5rem, 6vw);      /* 24px with viewport scaling */
  --hrv-space-xl: min(2rem, 8vw);        /* 32px with viewport scaling */
  --hrv-space-2xl: min(3rem, 10vw);      /* 48px with viewport scaling */
  
  /* Dynamic padding for containers */
  --hrv-container-padding: min(1.5rem, 5vw);
}

/* Hero Section Base Styles - Using dvh for better mobile experience */
.hrv-hero-section {
  position: relative;
  overflow: hidden; 
  height: 100vh; /* Fallback */
  height: 100dvh; /* Dynamic viewport height */
  min-height: 600px;
  max-height: 100dvh;
}

/* Slide Item Styles */
.hrv-hero-carousel .hrv-slide-item {
  position: relative;
  display: flex;
  align-items: center;
  height: 100vh; /* Fallback */
  height: 100dvh; /* Dynamic viewport height */
  min-height: 600px;
  max-height: 100dvh;
  padding: 0;
}

/* Content Box - Enhanced with better spacing and positioning */
.hrv-hero-carousel .hrv-content-box {
  position: relative;
  display: block;
  max-width: min(750px, 90vw); /* Fluid max-width */
  z-index: 5;
  color: var(--hrv-text-light);
  padding: min(2rem, 5vw) var(--hrv-container-padding);
  padding-top: min(80px, 10vh);
  transform: translateY(0);
  opacity: 1;
  text-align: left;
  /* Ensure content doesn't get too close to news box */
  margin-right: min(520px, 35vw);
}

/* Background Layer Styles - Enhanced for all screen sizes */
.hrv-hero-carousel .hrv-slide-item .hrv-bg-layer {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-position: center center; 
  background-size: cover;
  background-attachment: scroll; /* Better performance on mobile */
  transform: scale(1);
  filter: brightness(1.1);
  /* Ensure background covers all areas properly */
  object-fit: cover;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Overlay Layer Styles - Enhanced gradients for better text visibility */
.hrv-hero-carousel .hrv-slide-item .hrv-overlay-layer {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Custom overlay for Slide 1 - Enhanced for better text contrast */
.hrv-hero-carousel .hrv-slide-item .overlay-1 {
  background: linear-gradient(90deg, 
    rgba(0, 0, 0, 0.8) 0%, 
    rgba(0, 0, 0, 0.5) 40%, 
    rgba(0, 0, 0, 0.1) 70%, 
    rgba(0, 0, 0, 0.0) 100%);
}

/* Custom overlay for Slide 2 */
.hrv-hero-carousel .hrv-slide-item .overlay-2 {
  background: linear-gradient(50deg, 
    rgba(0, 0, 0, 0.3) 0%, 
    rgba(0, 0, 0, 0.6) 30%, 
    rgba(0, 0, 0, 0.1) 100%);
}

/* Custom overlay for Slide 3 */
.hrv-hero-carousel .hrv-slide-item .overlay-3 {
  background: linear-gradient(50deg, 
    rgba(0, 0, 0, 0.4) 0%, 
    rgba(0, 0, 0, 0.75) 30%, 
    rgba(0, 0, 0, 0.15) 100%);
}

/* Active slide zoom animation */
.hrv-hero-carousel .active .hrv-slide-item .hrv-bg-layer {
  transform: scale(1.03); 
}


.hrv-hero-carousel .hrv-content-box .hrv-upper-text {
  position: relative;
  display: inline-block;
  font-size: var(--hrv-text-md);
  line-height: var(--hrv-leading-tight);
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: var(--hrv-space-md);
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(-30px);

}

.hrv-hero-carousel .active .hrv-content-box .hrv-upper-text {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s;
}


.hrv-hero-carousel .hrv-content-box h2 {
  position: relative;
  display: block;
  font-size: var(--hrv-text-4xl); 
  line-height: var(--hrv-leading-tight);
  font-weight: 700;
  margin-bottom: var(--hrv-space-lg);
  color: var(--hrv-text-light);
  opacity: 0;
  transform: translateY(30px);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  max-width: 100%;
  word-wrap: break-word;
}

.hrv-hero-carousel .active .hrv-content-box h2 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}


.hrv-hero-carousel .hrv-content-box p {
  font-size: var(--hrv-text-sm); 
  line-height: var(--hrv-leading-relaxed);
  color: var(--hrv-text-light);
  opacity: 0;
  transform: translateY(30px);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
  max-width: 100%;
}

.hrv-hero-carousel .hrv-content-box .tagline{
  margin-bottom: var(--hrv-space-xl);
  padding-top: 5px;
  font-size: var(--hrv-text-xs);
  position: relative;
  display: inline-block;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
  opacity: 0;
  transform: translateY(30px);
  
}

.hrv-hero-carousel .active .hrv-content-box .tagline {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.4s; 
}

.hrv-hero-carousel .active .hrv-content-box p {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s;
}

/* Button Group Styles */
.hrv-hero-carousel .hrv-content-box .hrv-button-group {
  opacity: 0;
  transform: translateY(30px);
  
  display: flex;
  flex-wrap: wrap;
  gap: var(--hrv-space-md);
}

.hrv-hero-carousel .active .hrv-content-box .hrv-button-group {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.5s;
}


.hrv-primary-btn, .hrv-outline-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--hrv-space-sm) var(--hrv-space-xl);
  border-radius: 50px;
  font-size: var(--hrv-text-sm);
  font-weight: 600;
  text-transform: capitalize;
  overflow: hidden;
  z-index: 1;
  
  text-decoration: none;
  min-height: 48px;
  min-width: 120px;
}

.hrv-primary-btn .hrv-btn-text, .hrv-outline-btn .hrv-btn-text {
  position: relative;
  z-index: 1;
  
}

.hrv-primary-btn i, .hrv-outline-btn i {
  margin-left: var(--hrv-space-xs);
  font-size: var(--hrv-text-sm);
  
}

.hrv-primary-btn {
  background: var(--hrv-gradient);
  color: var(--hrv-text-light);
  box-shadow: 0 7px 20px rgba(242, 101, 34, 0.3);
}

.hrv-primary-btn:hover {
  box-shadow: 0 10px 30px rgba(242, 101, 34, 0.5);
  transform: translateY(-3px);
  color: var(--hrv-text-light);
}

.hrv-outline-btn {
  background: rgba(255, 255, 255, 0.1);
  color: var(--hrv-text-light);
  border: 2px solid var(--hrv-green);
  box-shadow: 0 7px 20px rgba(57, 181, 74, 0.2);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

.hrv-outline-btn:hover {
  background: var(--hrv-green);
  color: var(--hrv-text-light);
  border-color: var(--hrv-green);
  box-shadow: 0 7px 20px rgba(57, 181, 74, 0.4);
  transform: translateY(-3px);
}

.hrv-primary-btn:hover i, .hrv-outline-btn:hover i {
  transform: translateX(5px);
}

/* Navigation Styles - Responsive positioning */
.hrv-hero-section .owl-nav {
  position: absolute;
  bottom: min(50px, 8vh);
  right: min(20px, 5vw);
  display: flex;
  gap: var(--hrv-space-sm);
  z-index: 9;
}

.hrv-hero-section .owl-nav button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: min(50px, 8vw) !important;
  height: min(50px, 8vw) !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.15) !important;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: none !important;
  color: var(--hrv-text-light) !important;
  font-size: clamp(16px, 3vw, 24px) !important;
  transition: all var(--hrv-transition-fast);
}

.hrv-hero-section .owl-nav button:hover {
  background: var(--hrv-gradient) !important;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(239, 114, 31, 0.3);
}

.hrv-hero-section .owl-nav button span {
  display: none;
}

.hrv-hero-section .owl-dots {
  position: absolute;
  bottom: min(50px, 8vh);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--hrv-space-xs);
  z-index: 9;
}

.hrv-hero-section .owl-dots .owl-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3) !important;
  transition: all var(--hrv-transition-fast);
  margin: 0 4px;
  border: none !important;
  padding: 0 !important;
}

.hrv-hero-section .owl-dots .owl-dot.active {
  width: 30px;
  border-radius: 10px;
  background: var(--hrv-gradient) !important;
  box-shadow: 0 2px 5px rgba(239, 114, 31, 0.5);
}

.hrv-hero-section .owl-dots .owl-dot:focus {
  outline: none;
}

.hrv-hero-section .owl-dots .owl-dot span {
  display: none;
}

/* Progress Bar */
.hrv-slide-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 5px;
  background: var(--hrv-gradient);
  width: 0;
  opacity: 0.9;
  z-index: 10;
  border-top-right-radius: 3px;
  border-bottom-right-radius: 3px;
  box-shadow: 0 1px 5px rgba(242, 101, 34, 0.3);
  transition: width 0.1s linear;
}

/* Container - Enhanced with fluid max-width */
.hrv-container {
  position: relative;
  max-width: min(1300px, 95vw);
  margin: 0 auto;
  padding: 0 var(--hrv-container-padding);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
}

/* FIXED: News Box Style - Proper animation coordination */
.hrv-news-box {
  position: absolute;
  bottom: min(120px, 15vh);
  right: min(60px, 8vw);
  width: min(500px, 35vw);
  height: min(150px, 20vh);
  background-color: rgba(0, 0, 0, 0.7);
  overflow: hidden;
  z-index: 20;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
 
  border-radius: 2px;
  /* FIXED: Add initial animation state */
  opacity: 0;
  transform: translateY(30px);
}

/* FIXED: Active news box animation */
.hrv-hero-carousel .active .hrv-news-box {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.6s; /* After button group */
}

/* News Slider Container */
.news-slider-container {
  position: relative;
  width: 100%;
  height: calc(100% - 4px);
  overflow: hidden;
}

/* News Items Wrapper */
.news-items-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
}

/* Individual News Item */
.news-item {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform: translateZ(0);
  backface-visibility: hidden;
}

.news-item:first-child {
  opacity: 1;
}

/* News Thumbnail - Enhanced with aspect-ratio */
.news-thumbnail {
  width: min(100px, 25%);
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
              opacity 0.6s ease;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* News Content */
.news-text-content {
  padding: min(22px, 4vw);
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  flex: 1;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
              opacity 0.6s ease;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.news-label {
  font-size: clamp(10px, 1.5vw, 12px);
  font-weight: 700;
  color: #F26522;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
  text-transform: uppercase;
  opacity: 0.9;
  transition: color 0.3s ease;
}

.news-headline {
  font-size: clamp(13px, 2vw, 15px);
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
  color: #ffffff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* News Link Styling */
.news-link {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
  position: relative;
}

.news-link:hover {
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

.news-link:focus {
  outline: 2px solid #F26522;
  outline-offset: 2px;
  border-radius: 2px;
}

/* Progress Bar Container */
.news-progress-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  z-index: 25;
}

/* Individual Progress Segments */
.progress-segment {
  flex: 1;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  position: relative;
  margin-right: 1px;
  overflow: hidden;
}

.progress-segment:last-child {
  margin-right: 0;
}

/* Active Progress Fill */
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #F26522 0%, #F7941D 100%);
  width: 0%;
  transition: width 0.1s linear;
  border-radius: 0;
  box-shadow: 0 0 8px rgba(242, 101, 34, 0.5);
  transform: translateZ(0);
  backface-visibility: hidden;
}

.progress-segment.completed .progress-fill {
  width: 100%;
  transition: none;
  box-shadow: 0 0 6px rgba(242, 101, 34, 0.3);
}

/* Enhanced Hover Effects */
.hrv-news-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.hrv-news-box:hover .news-thumbnail {
  transform: scale(1.08);
}

.hrv-news-box:hover .progress-fill {
  box-shadow: 0 0 15px rgba(242, 101, 34, 0.8);
}

.hrv-news-box:hover .news-label {
  color: #F7941D;
}

/* RESPONSIVE BREAKPOINTS - Enhanced for better small laptop support */

/* Large Desktop (1600px+) - High resolution displays */
@media only screen and (min-width: 1600px) {
  .hrv-hero-carousel .hrv-content-box {
    max-width: 800px;
    margin-right: 580px;
  }
  
  .hrv-news-box {
    width: 520px;
    height: 160px;
    right: 120px;
    bottom: 60px;
  }
}

/* Standard Desktop (1440px - 1599px) */
@media only screen and (min-width: 1440px) and (max-width: 1599px) {
  .hrv-hero-carousel .hrv-content-box {
    max-width: 750px;
    margin-right: 562px;
  }
  
  .hrv-news-box {
    width: 504px;
    height: 123px;
    right: 120px;
    bottom: 80px;
  }
}

/* Small Desktop/Large Laptop (1200px - 1439px) - Better optimization */
@media only screen and (min-width: 1200px) and (max-width: 1439px) {
  .hrv-hero-carousel .hrv-content-box {
    max-width: 750px;
    margin-right: 450px;
    padding-left: min(2rem, 4vw);
  }
  
  .hrv-news-box {
    width: 420px;
    height: 130px;
    right: 80px;
    bottom: 80px;
  }
  
  .news-thumbnail {
    width: 90px;
  }
  
  .news-text-content {
    padding: 18px;
  }
}

/* Medium Laptop (1024px - 1199px) - Critical for MacBook Air and similar */
@media only screen and (min-width: 1024px) and (max-width: 1199px) {
  .hrv-hero-carousel .hrv-content-box {
    max-width: 550px;
    margin-right: 380px;
    padding-left: min(1.5rem, 3vw);
  }
  
  .hrv-news-box {
    width: 360px;
    height: 120px;
    right: 60px;
    bottom: 80px;
  }
  
  .news-thumbnail {
    width: 80px;
  }
  
  .news-text-content {
    padding: 15px;
  }
  
  .news-headline {
    font-size: 13px;
  }
  
  .news-label {
    font-size: 10px;
  }
}

/* Small Laptop (992px - 1023px) - Surface Laptop Go, older MacBooks */
@media only screen and (min-width: 992px) and (max-width: 1023px) {
  .hrv-hero-carousel .hrv-content-box {
    max-width: 500px;
    margin-right: 320px;
    padding-left: min(1.5rem, 3vw);
  }
  
  .hrv-news-box {
      display: none;
    }
  
  .news-thumbnail {
    width: 75px;
  }
  
  .news-text-content {
    padding: 12px;
  }
  
  .news-headline {
    font-size: 12px;
    -webkit-line-clamp: 2;
  }
  
  .news-label {
    font-size: 9px;
  }
}

/* Tablet Landscape (768px - 991px) */
@media only screen and (min-width: 768px) and (max-width: 991px) {
  .hrv-hero-section,
  .hrv-hero-carousel .hrv-slide-item {
    height: 90vh;
    height: 90dvh;
    min-height: 600px;
  }
  
  .hrv-hero-carousel .hrv-content-box {
    max-width: 100%;
    margin-right: 0;
    padding: 0 var(--hrv-container-padding);
  }
  
  .hrv-news-box {
   display: none;
  }
  
  .news-thumbnail {
    width: 70px;
  }
  
  .news-text-content {
    padding: 12px;
  }
  
  .news-headline {
    font-size: 12px;
  }
}

/* Mobile Landscape & Small Tablets (576px - 767px) */
@media only screen and (min-width: 576px) and (max-width: 767px) {
  .hrv-hero-section,
  .hrv-hero-carousel .hrv-slide-item {
    height: 85vh;
    height: 85dvh;
    min-height: 500px;
  }
  
  .hrv-hero-carousel .hrv-content-box {
    max-width: 100%;
    margin-right: 0;
    padding: 0 var(--hrv-space-md);
    padding-top: min(60px, 8vh);
  }
  
  .hrv-news-box {
   display: none;
  }
  
  .news-thumbnail {
    width: 65px;
  }
  
  .news-text-content {
    padding: 10px;
  }
  
  .news-headline {
    font-size: 11px;
    -webkit-line-clamp: 2;
  }
  
  .news-label {
    font-size: 8px;
  }
  
  /* Disable zoom animation on smaller screens for better performance */
  .hrv-hero-carousel .hrv-slide-item .hrv-bg-layer {
    transform: scale(1) !important;
    transition: none !important;
  }
  
  .hrv-hero-carousel .active .hrv-slide-item .hrv-bg-layer {
    transform: scale(1) !important;
  }
}

/* Mobile Portrait (max-width: 575px) */
@media only screen and (max-width: 575px) {
  .hrv-hero-section,
  .hrv-hero-carousel .hrv-slide-item {
    height: 100vh;
    height: 100dvh;
    min-height: 500px;
  }
  
  .hrv-hero-carousel .hrv-content-box {
    max-width: 100%;
    margin-right: 0;
    padding: 0 var(--hrv-space-md);
    padding-top: min(40px, 6vh);
  }
  
  .hrv-hero-carousel .hrv-content-box .hrv-button-group {
    display: flex;
    flex-direction: column;
    gap: var(--hrv-space-sm);
    align-items: flex-start;
  }
  
  .hrv-primary-btn, .hrv-outline-btn {
    width: 100%;
    max-width: 110px;
    text-align: center;
    padding-top:5px ;
    padding-bottom: 5px;
    padding-left:5px ;
    padding-right:5px ;
  }
  
  /* Hide news box on mobile to prevent any overlap */
  .hrv-news-box {
    display: none;
  }
  
  /* Enhanced mobile overlay for better text readability */
  .hrv-hero-carousel .hrv-slide-item .hrv-overlay-layer {
    background: linear-gradient(50deg, 
      rgba(0, 0, 0, 0.7) 0%, 
      rgba(0, 0, 0, 0.5) 30%, 
      rgba(0, 0, 0, 0.2) 100%) !important;
  }
  
  .hrv-hero-carousel .hrv-slide-item .hrv-bg-layer {
    transform: scale(1) !important;
    transition: none !important;
    background-position: center center;
  }
  
  .hrv-hero-carousel .active .hrv-slide-item .hrv-bg-layer {
    transform: scale(1) !important;
  }
  
  /* Optimize navigation for mobile */
  .hrv-hero-section .owl-nav {
    bottom: 30px;
    right: 20px;
  }
  
  .hrv-hero-section .owl-dots {
    bottom: 30px;
  }
}

/* Ultra-small devices (max-width: 320px) */
@media only screen and (max-width: 320px) {
  .hrv-hero-carousel .hrv-content-box {
    padding: 0 1rem;
  }
  
  .hrv-primary-btn, .hrv-outline-btn {
    max-width: 160px;
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
  }
}

/* Fix for iOS Safari height issues using dvh fallback */
@supports (height: 100dvh) {
  .hrv-hero-section,
  .hrv-hero-carousel .hrv-slide-item {
    height: 100dvh;
  }
}

/* High DPI displays optimization */
@media only screen and (-webkit-min-device-pixel-ratio: 2), 
       only screen and (min-resolution: 192dpi) {
  .hrv-hero-carousel .hrv-content-box h2,
  .hrv-hero-carousel .hrv-content-box p {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

/* Focus states for accessibility */
.hrv-primary-btn:focus,
.hrv-outline-btn:focus,
.hrv-hero-section .owl-nav button:focus,
.hrv-hero-section .owl-dots .owl-dot:focus {
  outline: 2px solid var(--hrv-light-blue);
  outline-offset: 2px;
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .hrv-hero-carousel .hrv-slide-item .hrv-bg-layer {
    transition: none !important;
    transform: scale(1) !important;
  }
  
  .hrv-hero-carousel .active .hrv-slide-item .hrv-bg-layer {
    transform: scale(1) !important;
  }
  
  .news-item {
    transition: opacity 0.3s ease;
  }
  
  .news-thumbnail,
  .news-text-content {
    transition: transform 0.4s ease, opacity 0.3s ease;
  }
  
  .progress-fill {
    transition: width 0.3s linear;
  }
  
  .hrv-news-box:hover {
    transform: translateY(-1px);
  }
  
  .hrv-news-box:hover .news-thumbnail {
    transform: scale(1.02);
  }
  
  /* FIXED: Reduce motion for hero content animations */
  .hrv-hero-carousel .hrv-content-box .hrv-upper-text,
  .hrv-hero-carousel .hrv-content-box h2,
  .hrv-hero-carousel .hrv-content-box p,
  .hrv-hero-carousel .hrv-content-box .tagline,
  .hrv-hero-carousel .hrv-content-box .hrv-button-group,
  .hrv-news-box {
    transition: opacity 0.3s ease !important;
  }
}

/* Print styles */
@media print {
  .hrv-hero-section {
    height: auto;
  }
  
  .hrv-news-box,
  .hrv-hero-section .owl-nav,
  .hrv-hero-section .owl-dots {
    display: none;
  }
  
  .hrv-hero-carousel .hrv-content-box {
    margin-right: 0;
  }
}

/* Fix for iOS Safari height issues */
@supports (-webkit-touch-callout: none) {
  .hrv-hero-section,
  .hrv-hero-carousel .hrv-slide-item {
    height: -webkit-fill-available !important;
  }
}

/* Mobile specific media query for hero background */
@media only screen and (max-width: 767px) {
  .hrv-hero-carousel .hrv-slide-item .banner-1 {
    background-image: url('/static/images/banners/banner_page_mobile.jpg') !important;
  }

  .hrv-hero-carousel .hrv-slide-item .hrv-overlay-layer {
    background: linear-gradient(50deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.5) 30%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 1;
  }
}