/* Custom styles extracted from index.html */

html, body {
  overflow-x: hidden;
}

.sticky { position: sticky; }
.top-0 { top: 0; }
.z-50 { z-index: 50; }

.aspect-\[4\/5\] {
  aspect-ratio: 4 / 5;
}

/* ===== HERO SLIDER ===== */

.hero-slider-section {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: #052A4A;
}

@media (min-width: 1024px) {
  .hero-slider-section {
    height: 680px;
  }
}

/* Background images — cross-fade */
.hero-bg-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 1000ms ease;
}

.hero-bg-slide.is-active {
  opacity: 1;
}

/* Gradient overlay — left-to-right dark fade so text is legible */
.hero-slider-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to right,
      rgba(5, 42, 74, 0.90) 0%,
      rgba(5, 42, 74, 0.75) 38%,
      rgba(5, 42, 74, 0.35) 65%,
      rgba(5, 42, 74, 0.08) 100%),
    linear-gradient(to top,
      rgba(5, 42, 74, 0.55) 0%,
      transparent 55%);
}

/* Text content — vertically centred */
.hero-slider-body {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  padding-top: 16px;
  padding-bottom: 72px; /* leave room for dots */
}

.hero-content h2 {
  letter-spacing: -0.02em;
}

/* Outline ghost button */
.hero-outline-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.55);
  color: #ffffff;
  backdrop-filter: blur(4px);
}

.hero-outline-btn:hover {
  background: #ffffff;
  color: #0A3F6D;
  border-color: #ffffff;
}

/* Stats row — thin top border */
.hero-stats-row {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 28px;
}

/* Prev / Next arrow buttons — hidden on small screens to avoid text overlap */
.hero-nav-btn {
  display: none; /* hidden by default, shown only on wide screens */
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  /*background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.30);*/
  color: #ffffff;
  font-size: 15px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, transform 0.2s ease;
}

.hero-nav-btn:hover {
  background: rgba(76, 167, 80, 0.80);
  transform: translateY(-50%) scale(1.1);
}

/* Only show arrows on large screens where there is enough space */
@media (min-width: 1280px) {
  .hero-nav-btn {
    display: flex;
  }
  .hero-nav-prev { left: 14px; }
  .hero-nav-next { right: 14px; }
}

/* Dot indicators */
.hero-dots-wrap {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 10px;
  align-items: center;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.40);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease;
}

.hero-dot.is-active {
  background: #4CA750;
  transform: scale(1.4);
}

.hero-dot:hover:not(.is-active) {
  background: rgba(255, 255, 255, 0.75);
}

.site-logo-header {
  height: 60px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
}

@media (min-width: 1024px) {
  .site-logo-header {
    height: 80px;
    max-width: 260px;
  }
}

.site-logo-footer {
  height: 64px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
}

@media (min-width: 1024px) {
  .site-logo-footer {
    height: 72px;
    max-width: 240px;
  }
}

.site-logo-mobile {
  height: 56px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  display: block;
}

.bg-brand-green { background-color: #4CA750; }
.bg-brand-darkgreen { background-color: #3B8B3E; }
.bg-brand-blue { background-color: #0D62A6; }
.bg-brand-darkblue { background-color: #0A3F6D; }
.bg-brand-navy { background-color: #052A4A; }
.bg-brand-lightbg { background-color: #F8FBF8; }

.text-brand-green { color: #4CA750; }
.text-brand-darkgreen { color: #3B8B3E; }
.text-brand-blue { color: #0D62A6; }
.text-brand-darkblue { color: #0A3F6D; }

.border-brand-green { border-color: #4CA750; }
.border-brand-blue { border-color: #0D62A6; }

.shadow-soft { box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05); }
.shadow-card { box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.08); }

.bg-brand-navy\/95 { background-color: rgba(5, 42, 74, 0.95); }

.selection\:bg-brand-green::selection { background-color: #4CA750; }
.selection\:text-white::selection { color: #ffffff; }

.text-green-50 { color: #f0fdf4; }

.bg-gradient-to-r {
  background-image: linear-gradient(to right, var(--tw-gradient-stops));
}

.bg-gradient-to-br {
  background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}

.from-brand-green {
  --tw-gradient-from: #4CA750;
  --tw-gradient-to: rgb(76 167 80 / 0);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.from-brand-blue {
  --tw-gradient-from: #0D62A6;
  --tw-gradient-to: rgb(13 98 166 / 0);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.to-brand-blue {
  --tw-gradient-to: #0D62A6;
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.to-brand-green {
  --tw-gradient-to: #4CA750;
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.curved-img-container {
  clip-path: polygon(0 0, 100% 0, 100% 85%, 50% 100%, 0 85%);
}

@media (min-width: 1024px) {
  .hero-shape-bg {
    border-radius: 50% 0 0 50%;
    background-color: #f0f7f2;
  }
}

/* Custom dotted background pattern */
.dotted-bg {
  background-image: radial-gradient(#cbd5e1 2px, transparent 2px);
  background-size: 20px 20px;
}

.text-sm {
  font-size: 15px !important;
}


.copyright p {
  font-size: 15px;
}

.copyright a {
  font-size: 15px;
}

/* ===== SCROLL TO TOP BUTTON ===== */

#scroll-top-btn {
  position: fixed;
  bottom: 32px;
  right: 28px;
  z-index: 999;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #4CA750;
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 4px 16px rgba(76, 167, 80, 0.40);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.2s ease;
}

#scroll-top-btn.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#scroll-top-btn:hover {
  background: #3B8B3E;
  box-shadow: 0 6px 20px rgba(76, 167, 80, 0.55);
  transform: translateY(-3px);
}

#scroll-top-btn:active {
  transform: translateY(0);
}

.porunai-header-nav {
  overflow: visible !important;
  overflow-y: visible !important;
  height: auto !important;
  max-height: none !important;
}

.porunai-header-nav nav,
.porunai-header-nav ul,
.porunai-header-nav li {
  overflow: visible !important;
}

.porunai-header-nav .menu-item-has-children {
  position: relative;
}

.porunai-header-nav .menu-item-has-children > ul {
  max-height: none !important;
  overflow: visible !important;
  overflow-y: visible !important;
}

/* 
   Hide scrollbars on the header navigation widget, all its descendant elements, 
   and all its parent containers (Elementor sections, columns, wraps, etc.)
*/
body :has(.porunai-header-nav)::-webkit-scrollbar,
body :has(.porunai-header-nav) *::-webkit-scrollbar,
.porunai-header-nav::-webkit-scrollbar,
.porunai-header-nav *::-webkit-scrollbar {
  display: none !important;
}

body :has(.porunai-header-nav),
body :has(.porunai-header-nav) *,
.porunai-header-nav,
.porunai-header-nav * {
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
}

/* Enforce visible overflow and auto-height on all ancestor elements wrapping the header navigation */
body :has(.porunai-header-nav),
body :has(.porunai-nav-menu),
.elementor-widget-porunai_header_navigation,
.elementor-widget-porunai_header_navigation .elementor-widget-container,
.elementor-widget-porunai_nav_menu,
.elementor-widget-porunai_nav_menu .elementor-widget-container,
.elementor-section:has(.porunai-header-nav),
.elementor-container:has(.porunai-header-nav),
.elementor-row:has(.porunai-header-nav),
.elementor-column:has(.porunai-header-nav),
.elementor-column-wrap:has(.porunai-header-nav),
.elementor-widget-wrap:has(.porunai-header-nav),
.elementor-widget:has(.porunai-header-nav),
.elementor-widget-container:has(.porunai-header-nav),
.elementor-section:has(.porunai-nav-menu),
.elementor-container:has(.porunai-nav-menu),
.elementor-row:has(.porunai-nav-menu),
.elementor-column:has(.porunai-nav-menu),
.elementor-column-wrap:has(.porunai-nav-menu),
.elementor-widget-wrap:has(.porunai-nav-menu),
.elementor-widget:has(.porunai-nav-menu),
.elementor-widget-container:has(.porunai-nav-menu),
.elementor-location-header,
.elementor-location-header .elementor-section,
.elementor-location-header .elementor-container,
.elementor-location-header .elementor-widget-wrap,
.hfe-site-header,
.hfe-site-header .elementor-section,
.hfe-site-header .elementor-container,
.hfe-site-header .elementor-widget-wrap {
  overflow: visible !important;
  overflow-y: visible !important;
  height: auto !important;
  max-height: none !important;
}

/* Force standard auto scrollbar rendering on the page body */
html {
  overflow-y: auto !important;
}



