/* Figma-based hero section styling with full-width, blur, and opacity overlay */
.hero {
  width: 100vw;
  min-width: 100vw;
  height: 733px;
  min-height: unset;
  position: relative;
  left: 0;
  top: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  z-index: 1; /* Lower z-index than navbar */
}

.hero__slider {
  width: 100%;
  height: 100%;
  position: relative;
}

.hero__slide {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.hero__slide.active {
  opacity: 1;
  z-index: 1;
}

/* About page hero specific styling */
body.about-page .hero {
  width: 100%;
  max-width: 1468px;
  height: 790px;
  margin: 0 auto;
  opacity: 1;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.hero__img {
  width: 100vw;
  height: 733px;
  object-fit: cover;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  opacity: 1;
}

/* Navigation buttons - removed from hero overlay */
/* All navigation is now handled by universal controls below */

/* ====== UNIVERSAL SLIDE CONTROLS - FOR ALL SCREEN SIZES ====== */
/* Navigation buttons and indicators - all in same line */
.hero__universal-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin: 10px auto 20px auto;
  padding: 15px 25px;
  border-radius: 30px;
  backdrop-filter: blur(10px);
  max-width: 350px;
  width: 90%;
}

.hero__indicators {
  display: flex;
  gap: 10px;
}

.hero__indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  border: 2px solid #274472;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.hero__indicator.active {
  background: #274472;
  transform: scale(1.3);
  box-shadow: 0 0 10px rgba(39, 68, 114, 0.5);
}

.hero__indicator:hover {
  background: rgba(39, 68, 114, 0.7);
  transform: scale(1.1);
}

.hero__nav {
  position: static !important;
  background: transparent;
  border: 2px solid rgba(39, 68, 114, 0.6);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  transform: none !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
}

.hero__nav:hover {
  background: #274472;
  border-color: #274472;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(39, 68, 114, 0.4);
}

.hero__nav img {
  width: 24px;
  height: 24px;
  /* filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2878%) hue-rotate(346deg) brightness(104%) contrast(97%); */
  transition: filter 0.3s ease;
}

.hero__nav:hover img {
  filter: brightness(0) invert(1);
}

/* Responsive adjustments for universal controls */
@media (min-width: 1500px) {
  .hero__universal-controls {
    max-width: 450px;
    gap: 45px;
    padding: 20px 35px;
    margin: 15px auto 25px auto;
  }
  
  .hero__nav {
    width: 55px;
    height: 55px;
  }
  
  .hero__nav img {
    width: 30px;
    height: 30px;
  }
  
  .hero__indicators {
    bottom: 30px;
    gap: 15px;
    padding: 10px 16px;
  }
  
  .hero__indicator {
    width: 16px;
    height: 16px;
  }
}
  
  .hero__nav img {
    width: 32px;
    height: 32px;
  }
  
  .hero__indicators {
    gap: 14px;
  }
  
  .hero__indicator {
    width: 16px;
    height: 16px;
  }


@media (min-width: 1200px) and (max-width: 1499px) {
  .hero__universal-controls {
    max-width: 400px;
    gap: 40px;
    padding: 18px 30px;
    margin: 5px auto 20px auto; /* Reduced top margin significantly */
  }
  
  .hero__nav {
    width: 50px;
    height: 50px;
    border: 2px solid rgba(39, 68, 114, 0.6);
  }
  
  .hero__nav:hover {
    background: #274472;
    border-color: #274472;
    transform: scale(1.1);
    box-shadow: 0 5px 14px rgba(39, 68, 114, 0.4);
  }
  
  .hero__nav img {
    width: 28px;
    height: 28px;
  }
  
  .hero__indicators {
    gap: 12px;
  }
  
  .hero__indicator {
    width: 14px;
    height: 14px;
  }
}

@media (min-width: 901px) and (max-width: 1199px) {
  .hero__universal-controls {
    max-width: 370px;
    gap: 35px;
    padding: 16px 28px;
    margin: 8px auto 18px auto;
  }
  
  .hero__nav {
    width: 48px;
    height: 48px;
    border: 2px solid rgba(39, 68, 114, 0.6);
  }
  
  .hero__nav:hover {
    background: #274472;
    border-color: #274472;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(39, 68, 114, 0.4);
  }
  
  .hero__nav img {
    width: 26px;
    height: 26px;
  }
  
  .hero__indicators {
    gap: 11px;
  }
  
  .hero__indicator {
    width: 13px;
    height: 13px;
  }
}

@media (max-width: 900px) {
  .hero__universal-controls {
    max-width: 320px;
    gap: 25px;
    padding: 14px 22px;
    margin: 10px auto 16px auto;
  }
  
  .hero__nav {
    width: 42px;
    height: 42px;
    border: 2px solid rgba(39, 68, 114, 0.6);
  }
  
  .hero__nav:hover {
    background: #274472;
    border-color: #274472;
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(39, 68, 114, 0.4);
  }
  
  .hero__nav img {
    width: 22px;
    height: 22px;
  }
  
  .hero__indicators {
    gap: 9px;
  }
  
  .hero__indicator {
    width: 11px;
    height: 11px;
  }
}

@media (max-width: 600px) {
  .hero__universal-controls {
    max-width: 280px;
    gap: 20px;
    padding: 12px 18px;
    width: 95%;
  }
  
  .hero__nav {
    width: 38px;
    height: 38px;
  }
  
  .hero__nav img {
    width: 20px;
    height: 20px;
  }
  
  .hero__indicators {
    gap: 8px;
  }
  
  .hero__indicator {
    width: 10px;
    height: 10px;
  }
}

@media (max-width: 350px) {
  .hero__universal-controls {
    max-width: 250px;
    gap: 15px;
    padding: 10px 15px;
  }
  
  .hero__nav {
    width: 35px;
    height: 35px;
  }
  
  .hero__nav img {
    width: 18px;
    height: 18px;
  }
  
  .hero__indicators {
    gap: 6px;
  }
  
  .hero__indicator {
    width: 9px;
    height: 9px;
  }
}

/* About page image styling */
body.about-page .hero__img {
  width: 100%; /* Fill the container */
  height: 100%; /* Fill the container */
  top: 0;
  left: 0;
  opacity: 1; /* Figma specification */
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 733px;
  background: rgba(255, 255, 255, 0.28);
  opacity: 1;
  backdrop-filter: blur(1px);
  z-index: 2;
  pointer-events: none;
}

/* About page overlay */
body.about-page .hero__overlay {
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.28);
  opacity: 1;
  backdrop-filter: blur(1px);
  z-index: 2;
  pointer-events: none;
}

.hero__content {
  position: absolute;
  top: 120px;
  left: 43px;
  z-index: 3;
  background: rgba(255,255,255,0.0);
  width: 848px;
  max-width: 90vw;
}

@media (max-width: 1500px) {
  .hero__content {
    width: calc(100% - 100px); /* Account for navigation buttons */
    left: 50px;
    right: 50px;
  }
}

/* About page content positioning */
body.about-page .hero__content {
  top: 120px; /* Position from top of hero */
  left: 40px; /* Better positioning within container */
  width: calc(100% - 80px); /* Account for left and right padding */
  max-width: none;
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}


.hero__title {
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 100px;
  font-weight: 700;
  color: #274472;
  margin: 0 0 16px 0;
  line-height: 100px;
  letter-spacing: 0;
  width: 848px;
  max-width: 100%;
  height: 180px;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

/* About page title styling */
body.about-page .hero__title {
  width: 100%;
  max-width: 853px; /* Figma specification */
  height: auto;
  /* min-height: 180px; */
  margin: 0 0 20px 0; /* Add bottom margin for spacing between title and subtitle */
  opacity: 1; /* Figma specification */
  font-family: 'Poppins', Arial, sans-serif;
  font-weight: 600; /* SemiBold */
  font-size: clamp(60px, 8vw, 100px); /* Responsive font size */
  line-height: 1.1; /* Better responsive line height */
  letter-spacing: 0%; /* Figma specification */
  position: relative;
  white-space: normal;
  color: #274472;
  display: block;
}

.hero__subtitle {
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #333333;
  margin: 0 0 32px 0;
  width: 795px;
  max-width: 100%;
  height: 121px;
  line-height: 1.2;
  position: relative; /* Make relative so nav buttons can position relative to it */
}

/* About page subtitle styling */
body.about-page .hero__subtitle {
  width: 100%; /* Full width of hero container */
  max-width: 853px; /* Match title max-width */
  height: auto;
  margin: 0; /* No margin as it follows the title */
  opacity: 1; /* Figma specification */
  font-family: 'Poppins', Arial, sans-serif;
  font-weight: 400; /* Regular */
  font-size: clamp(22px, 3vw, 36px); /* Increased font size */
  line-height: 1.3; /* Better readability */
  letter-spacing: 0%; /* Figma specification */
  text-align: left; /* Align with title */
  color: #274472; /* Same color as title for consistency */
  position: relative;
  background-color: transparent; /* Remove background */
  padding: 0; /* Remove padding */
  border-radius: 0; /* Remove border radius */
  display: block;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 180px;

  max-width: 90vw;
  height: 50px;
  padding: 0 16px;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: #D2042D;
  border: 3px solid #E63946;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  box-sizing: border-box;
  vertical-align: middle;
  text-align: center;
  line-height: 1.2;
  margin-top: -40px;
  letter-spacing: 0.5px;
  /* background: #fff; */
}
.hero__cta:hover {
  background: #D2042D!important;
  color: white !important;
  border: 3px solid #E63946;
  box-shadow: 0 2px 8px rgba(210,4,45,0.15);
}

/* --- HERO: Prevent text overflow in hero section --- */
.hero-title, .hero-desc {
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

/* Responsive styles */
@media (max-width: 1500px) {
  .hero {
    max-width: 100vw;
    height: 60vw;
    min-height: 400px;
  }
  
  /* About page responsive adjustments */
  body.about-page .hero {
    height: 660px; 
    margin: 0 auto; /* Remove top margin on mobile too */
  }
  
  body.about-page .hero__content {
    top: 60px;
    left: 30px;
    width: calc(100% - 60px);
  }
  
  body.about-page .hero__title {
    font-size: clamp(40px, 6vw, 70px);
    margin-bottom: 8px; /* Reduced gap on mobile too */
  }
  
  body.about-page .hero__subtitle {
    font-size: clamp(20px, 2.5vw, 28px); /* Increased subtitle size on mobile */
  }
}

/* Fix for 1500-1700px range - prevent image cutting */
@media (min-width: 1500px) and (max-width: 1699px) {
  .hero {
    height: 800px; /* Fixed height instead of vw to prevent cutting */
    max-width: 100vw;
  }
  .hero__img,
  .hero__overlay {
    height: 800px;
    object-fit: cover;
    width: 100%;
  }
  .hero__content {
    top: 140px;
    left: 60px;
    width: 900px;
    max-width: 75vw;
  }
  .hero__title {
    font-size: 70px;
    line-height: 1.1;
  }
  .hero__subtitle {
    font-size: 20px;
    line-height: 1.4;
  }
}
  .hero__img, .hero__overlay {
    width: 100vw;
    /* height: 60vh; */
    min-height: 400px;
  }
  .hero__content {
    width: 60vw;
    left: 4vw;
    top: 12vw;
  }
  .hero__title {
    font-size: 7vw;
    line-height: 7vw;
    width: 60vw;
    height: auto;
  }
  .hero__subtitle {
    font-size: 1.5vw;
    width: 56vw;
    height: auto;
  }
  .hero__cta {
    width: 18vw;
    height: 4vw;
    font-size: 1.2vw;
    padding: 0;
    line-height: 4vw;
    margin-top: 24px;
  }

@media (max-width: 900px) {
  .hero {
    height: 340px;
    min-width: 100vw;
    padding: 0;
  }
  .hero__img,
  .hero__overlay {
    height: 340px;
    min-width: 100vw;
  }
  .hero__content {
    top: 60px; /* Increased from 40px to account for 44px navbar + spacing */
    left: 10px;
    width: 95vw;
    max-width: 95vw;
    padding: 0 8px;
  }
  .hero__title {
    font-size: 28px;
    line-height: 1.1;
  }
  .hero__subtitle {
    font-size: 16px;
    line-height: 1.2;
  }
  .hero__title, .hero__subtitle {
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    display: block;
  }
  .hero__cta {
    font-size: 15px;
    min-width: 200px;
    height: 36px;
    padding: 0 10px;
    margin-top: 8px;
    line-height: 1.2;
    text-align: center;
    justify-content: center;
    align-items: center;
    display: inline-flex;
  }
  
  /* About page mobile adjustments */
  body.about-page .hero {
    height: 448px; /* Increased from 300px to maintain image proportions */
    margin: 0 auto; /* Remove top margin on mobile */
  }
  
  body.about-page .hero__content {
    top: 60px; /* Increased from 40px to account for navbar */
    left: 15px;
    width: calc(100% - 30px);
  }
  
  body.about-page .hero__title {
    font-size: 32px;
    line-height: 1.1;
    margin-bottom: 5px; /* Reduced gap on mobile */
  }
  
  body.about-page .hero__subtitle {
    font-size: 20px; /* Increased mobile subtitle size */
    padding: 10px 15px;
  }
}
@media (max-width: 700px) {
  .hero {
    height: 220px;
  }
  .hero__img,
  .hero__overlay {
    height: 220px;
  }
  .hero__content {
    top: 50px; /* Increased from 20px to account for 38px navbar + spacing */
    width: 98vw;
    padding: 0 2vw;
  }
  .hero__title {
    font-size: 28px;
  }
  .hero__subtitle {
    font-size: 12px;
  }
  
  /* About page specific height for 700px and below */
  body.about-page .hero {
    height: 280px; /* Maintain proportional height for about page */
  }
}
@media (max-width: 600px) {
  .hero {
    height: 320px;
    padding: 24px 0 0 0;
  }
  .hero__img, .hero__overlay {
    height: 320px;
  }
  .hero__content {
    top: 50px; /* Increased from 32px to account for navbar + spacing */
    left: 8px;
    width: 95vw;
  }
  .hero__title {
    font-size: 32px;
    line-height: 32px;
    width: 95vw;
    height: auto;
  }
  .hero__subtitle {
    font-size: 14px;
    width: 95vw;
    height: auto;
  }
  .hero__cta {
    font-size: 13px;
    min-width: 180px;
    height: 32px;
    padding: 0 6px;
    margin-top: 8px;
    line-height: 1.2;
    text-align: center;
    justify-content: center;
    align-items: center;
    display: inline-flex;
  }
  
  /* About page specific height for 600px and below */
  body.about-page .hero {
    height: 350px; /* Maintain proportional height for about page */
  }
}

/* Ultra small mobile devices (350px and below) */
@media (max-width: 350px) {
  .hero {
    height: 280px;
    padding: 16px 0 0 0;
  }
  
  .hero__img, .hero__overlay {
    height: 280px;
  }
  
  .hero__content {
    top: 45px; /* Increased from 20px to account for 32px navbar + spacing */
    left: 5px;
    width: 98vw;
    padding: 0 5px;
  }
  
  .hero__title {
    font-size: 24px;
    line-height: 26px;
    width: 100%;
    height: auto;
    margin-bottom: 8px;
  }
  
  .hero__subtitle {
    font-size: 11px;
    width: 100%;
    height: auto;
    line-height: 1.3;
    margin-bottom: 10px;
  }
  
  .hero__cta {
    font-size: 11px;
    min-width: 180px;
    height: 28px;
    padding: 0 4px;
    margin-top: 6px;
    border-radius: 4px;
  }
  
  /* About page hero adjustments for small screens */
  body.about-page .hero {
    height: 300px; /* Increased from 240px to maintain better proportions */
  }
  
  body.about-page .hero__img, 
  body.about-page .hero__overlay {
    height: 240px;
  }
  
  body.about-page .hero__title {
    font-size: 20px;
    line-height: 22px;
  }
}
@media (min-width: 1700px) {
  .hero {
    height: 900px;
  }
  .hero__img,
  .hero__overlay {
    height: 900px;
  }
  .hero__content {
    top: 180px;
    width: 1100px;
    max-width: 80vw;
  }
  .hero__title {
    font-size: 80px;
    line-height: 1.1;
  }
  .hero__subtitle {
    font-size: 24px;
    line-height: 1.4;
  }
}

/* Enhanced scaling for 1700px screens */
@media (min-width: 1700px) {
  .hero {
    height: 900px;
  }
  .hero__img,
  .hero__overlay {
    height: 900px;
  }
  .hero__content {
    top: 180px;
    width: 1200px;
    max-width: 80vw;
  }
  .hero__title {
    font-size: 85px;
    line-height: 1.1;
  }
  .hero__subtitle {
    font-size: 26px;
    line-height: 1.4;
  }
  .hero__description {
    font-size: 20px;
    line-height: 1.6;
  }
  /* About page specific scaling */
  body.about-page .hero__title {
    font-size: 85px;
    line-height: 1.1;
  }
}

@media (min-width: 2000px) {
  .hero {
    height: 1000px;
  }
  .hero__img,
  .hero__overlay {
    height: 1000px;
  }
  .hero__content {
    top: 200px;
    width: 1300px;
    max-width: 75vw;
  }
  .hero__title {
    font-size: 90px;
    line-height: 1.1;
  }
  .hero__subtitle {
    font-size: 28px;
    line-height: 1.4;
  }
  .hero__description {
    font-size: 22px;
    line-height: 1.6;
  }
  /* About page specific scaling */
  body.about-page .hero__title {
    font-size: 90px;
    line-height: 1.1;
  }
}

@media (min-width: 2400px) {
  .hero {
    height: 1200px;
  }
  .hero__img,
  .hero__overlay {
    height: 1200px;
  }
  .hero__content {
    top: 240px;
    width: 1500px;
    max-width: 70vw;
  }
  .hero__title {
    font-size: 100px;
    line-height: 1.1;
  }
  .hero__subtitle {
    font-size: 32px;
    line-height: 1.4;
  }
  .hero__description {
    font-size: 24px;
    line-height: 1.6;
  }
  /* About page specific scaling */
  body.about-page .hero__title {
    font-size: 100px;
    line-height: 1.1;
  }
}

/* Extra Ultra Large screens 2800px+ */
@media (min-width: 2800px) {
  .hero {
    height: 1400px;
  }
  .hero__img,
  .hero__overlay {
    height: 1400px;
  }
  .hero__content {
    top: 280px;
    width: 1800px;
    max-width: 65vw;
  }
  .hero__title {
    font-size: 120px;
    line-height: 1.1;
  }
  .hero__subtitle {
    font-size: 38px;
    line-height: 1.4;
  }
  .hero__description {
    font-size: 28px;
    line-height: 1.6;
  }
  /* About page specific scaling */
  body.about-page .hero__title {
    font-size: 120px;
    line-height: 1.1;
  }
  /* Universal controls scaling */
  .hero__controls {
    bottom: 60px;
    gap: 30px;
  }
  .hero__arrow {
    width: 70px;
    height: 70px;
  }
  .hero__arrow svg {
    width: 36px;
    height: 36px;
  }
  .hero__indicators {
    gap: 16px;
  }
  .hero__indicator {
    width: 20px;
    height: 20px;
  }
}

/* ====== REMOVED OLD SLIDE INDICATORS AND MOBILE CONTROLS ====== */
/* All slide controls are now handled by the universal controls above */
