/* ================================================================ 
             MODERN HEADER START bml-header
================================================================ */

.bml-header {
  position: relative;
  width: 100%;
  z-index: 1000;
  clip-path: polygon(0 0, 100%
100%
 0%, 100% 100%, 0 calc(100% - 15.625rem));
}

                     /* Inner container (fixed header) */
.bml-header__inner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #030713;/*#163a46;*//*background: linear-gradient(135deg, rgba(15,18,35,0.85), rgba(25,25,55,0.8));*/
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  transition: transform 0.5s ease;
}

                          /* Hide on scroll */
.bml-header__inner.hidden {
  transform: translateY(-100%);
}

/* Container width */
.bml-header__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 25px;
}

                           /* Navigation bar */
.bml-header__nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

                            /* Logo */
.bml-header__logo a {
  font-size: 1.3rem;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  letter-spacing: 0.5px;
  /* white-space: nowrap; Ja teksts kādā brīdī pārlec uz jaunu rindu, pievieno noturībai */
}

.bml-header__logo a .brand-accent {
    color: #ffcc00; /* dzeltens */
}

                             /* Menu */
.bml-header__menu {
    color: #daeffb!important;
}

.bml-header__menu-list {
  display: flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  gap: 1.8rem;
  margin: 0;
  padding: 0;
}

.bml-header__link {
  text-decoration: none;
  color: #daeffb;/*#eaeaea; menu burtu krāsa */
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

.bml-header__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, #3B57F0, #728DFF);
  transition: width 0.3s ease;
}

.bml-header__link:hover::after {
  width: 100%;
}

.bml-header__link:hover {
  color: #fff;
}

                          /* Dropdown */
.bml-header__dropdown {
  position: relative;
}

.bml-header__dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(25,25,55,0.95);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  list-style: none;
  padding: 8px 0;
  margin: 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.bml-header__dropdown:hover .bml-header__dropdown-menu {
  display: block;
}

.bml-header__dropdown-item {
  display: block;
  color: #ddd;
  text-decoration: none;
  padding: 8px 20px;
  transition: background 0.2s ease;
}

.bml-header__dropdown-item:hover {
  background: rgba(59,87,240,0.2);
  color: #fff;
}

                               /* Language */
.bml-header__lang {
  position: relative;
}

                               /* Hamburger */
.bml-header__hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
  z-index: 1001;
}

.bml-header__hamburger span {
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

                               /* Animation for hamburger -> X */
.bml-header__hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.bml-header__hamburger.active span:nth-child(2) {
  opacity: 0;
}
.bml-header__hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

                                 /* HERO section */
.bml-header__hero {
  text-align: center;
  padding: 100px 20px 0px; /* sākotnējais padding: 140px 20px 40px; */
  color: #fff;
  /*background: linear-gradient(0deg, rgb(22, 58, 70) 0%, rgb(31, 78, 96) 100%);*//*background: linear-gradient(135deg, rgba(15,18,35,0.6), rgba(25,25,55,0.5));*/
  /*background: linear-gradient(135deg, rgba(15,18,35,0.6), rgba(25,25,55,0.5));
  clip-path: polygon(0 0, 100%
100%
 0%, 100% 100%, 0 calc(100% - 15.625rem));*/
  
}

.bml-header__title {
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0;
  font-weight: 700;
}

.bml-header__subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-top: 10px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

                                  /* Button */
.bml-header__button {
  display: inline-block;
  margin-top: 20px;
  margin-bottom: 20px;
  padding: 12px 28px;
  border-radius: 30px;
  background: #f9ca00; /*linear-gradient(135deg, #f9ca00, #f9f500); dzeltens */  /* #3B57F0, #728DFF zilie */
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}
.bml-header__button:hover {
  filter: brightness(1.2);
  transform: translateY(-2px);
}

                               /* Mobile */
@media (max-width: 900px) {
  .bml-header__hamburger {
    display: flex;
  }
  .bml-header__menu-list {
    display: none;
    flex-direction: column;
    width: 100%;
    background: rgba(25,25,55,0.96);
    padding: 20px 0;
  }
  .bml-header__menu-list.active {
    display: flex;
    animation: fadeIn 0.3s ease;
  }
  @keyframes fadeIn {
    from {opacity: 0; transform: translateY(-10px);}
    to {opacity: 1; transform: translateY(0);}
  }
}

/* ================= MOBILE STRUCTURE FIX ================= */
@media (max-width: 900px) {

                      /* HEADER – vairs nav fixed, tikai augšā */
  .bml-header__inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 30;
  }

                      /* LOGO un HAMBURGER rinda paliek šaurā, fiksētā zonā */
  .bml-header__nav {
    background: rgba(15,18,35,0.95);
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 40;
  }

                       /* MENU – atveras zem joslas, pilnā platumā */
  .bml-header__menu-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(20,22,40,0.98);
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    padding: 22px 0;
    z-index: 39;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
  }

  .bml-header__menu-list.active {
    display: flex;
  }

                   /* LOGO un HAMBURGER nelec kopā ar menu */
  .bml-header__hamburger {
    z-index: 45;
  }

                     /* HERO sākas zem headera */
  .bml-header__hero {
    position: relative;
    padding-top: 100px;  /* sākotnējais padding-top: 130px; */
    z-index: 1;
  }
}

/* ========= Header PDF download ========= */
.bml-header__pdf {
    margin-top: 0.3rem;
    font-size: 0.9rem;
    padding-bottom: 10px;
}

.bml-header__pdf-link {
    text-decoration: underline;
    cursor: pointer;
    color: #ffffff;
}

.bml-header__pdf-link:hover {
    text-decoration: none;
}

/* ================================================================ 
             MODERN HEADER END bml-header
================================================================ */
