* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif;
}

body {
  background-color: #f9f9f9;
  color: #333;
  line-height: 1.6;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}

header {
  background-color: #004e92;
  color: #fff;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: bold;
  font-size: 1.5em;
  text-decoration:none;
  color:white;
}

nav a {
  color: white;
  margin-left: 20px;
  text-decoration: none;
}


/* NAVIGATION BASE */
nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

/* MOBILE NAVIGATION */
@media (max-width: 768px) {
  nav {
    display: none;
    flex-direction: column;
    background: #fff;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  }

  nav.open {
    display: flex;
  }

  .menu-toggle {
    display: inline-block;
  }

  nav a {
    display: block;
    margin: 10px 0;
    color:black;
  }

  .lang-dropdown {
    margin-top: 15px;
  }

  .lang-options {
    position: static;
    display: block;
    border: none;
    box-shadow: none;
  }

  .lang-options a {
    padding: 5px 0;
    display: block;
  }
}

.hero {
  background: linear-gradient(135deg, #004e92, #000428);
  color: white;
  padding: 60px 20px;
  text-align: center;
}

.search-box {
  margin-top: 20px;
}

.search-box input {
  padding: 10px;
  width: 300px;
  border-radius: 5px 0 0 5px;
  border: none;
}

.search-box button {
  padding: 10px 20px;
  border: none;
  background-color: #f39c12;
  color: white;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
}

.categories {
  padding: 40px 20px;
  background-color: #fff;
}

.category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

.category-item {
  flex: 1 1 150px;
  text-align: center;
  background: #f1f1f1;
  padding: 20px;
  border-radius: 10px;
  font-size: 1.1em;
}

.category-item a {
    
    color:black;
    line-height:14px;
    text-decoration:none;
}



.category-item i {
  font-size: 2em;
  color: #004e92;
  margin-bottom: 10px;
}

.company-card {
  display: flex;
  gap: 20px;
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  margin-top: 20px;
  align-items: flex-start;
}

.company-card img {
  width: 100px;
  border-radius: 5px;
}

.card-content h3 {
  margin-bottom: 10px;
}

.cta {
  background-color: #004e92;
  color: white;
  text-align: center;
  padding: 40px 20px;
}

.cta-button {
  display: inline-block;
  margin-top: 15px;
  padding: 12px 25px;
  background-color: #f39c12;
  color: white;
  border-radius: 5px;
  text-decoration: none;
}

footer {
  background: #222;
  color: white;
  padding: 40px 20px 20px 20px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-content h4 {
  margin-bottom: 10px;
}

.footer-content a {
  color: #ccc;
  text-decoration: none;
  font-size: 0.9em;
}

.footer-bottom {
  text-align: center;
  margin-top: 20px;
  font-size: 0.85em;
  color: #aaa;
}




.alphabet-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.alphabet-filter span {
  padding: 2px 9px;
  background-color: #ddd;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}
.alphabet-filter span.active {
  background-color: #004e92;
  color: #fff;
  border-radius: 4px;
}

.alphabet-filter span:hover {
  background-color: #004e92;
  color: #fff;
}

.category-item {
  flex: 1 1 150px;
  text-align: center;
  background: #f1f1f1;
  padding: 15px;
  border-radius: 8px;
  font-size: 1em;
}

.view-button {
  display: inline-block;
  margin-top: 10px;
  background-color: #004e92;
  color: white;
  padding: 8px 15px;
  text-decoration: none;
  border-radius: 5px;
}










.company-card {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  margin-top: 20px;
  align-items: center;
  justify-content: space-between;
}

.company-col {
  flex: 1 1 22%;
  min-width: 220px;
}

.company-col.name h3 {
  margin-bottom: 5px;
}

.company-col.contact p,
.company-col.field p {
  margin-bottom: 6px;
}

.company-col.action {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.view-button {
  background-color: #004e92;
  color: white;
  padding: 10px 18px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
}

/* Responsive stacking on smaller screens */
@media (max-width: 992px) {
  .company-card {
    flex-direction: column;
  }
  .company-col {
    width: 100%;
  }
  .company-col.action {
    justify-content: flex-start;
    margin-top: 10px;
  }
}













.company-layout {
  display: flex;
  gap: 30px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.company-main {
  flex: 1 1 65%;
}

.company-sidebar {
  flex: 1 1 30%;
}

.company-card-modern {
  background: #fff;
  padding: 25px;
  margin-bottom: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  border-left: 5px solid #004e92;
}

.company-card-modern h1 {
  margin-bottom: 10px;
}

.company-card-modern h3 {
  margin-bottom: 10px;
  font-size: 1.1em;
  color: #004e92;
}

.company-card-modern p {
  margin-bottom: 10px;
}

.company-id {
  font-size: 0.95em;
  color: #777;
}

.contact-list {
  list-style: none;
  padding: 0;
}

.contact-list li {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}

.contact-list i {
  margin-right: 10px;
  color: #004e92;
  min-width: 20px;
}

.ad-block {
  background: #f5f5f5;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  text-align: center;
}

.view-button.small {
  padding: 8px 14px;
  font-size: 0.9em;
}

/* Responsive */
@media (max-width: 992px) {
  .company-layout {
    flex-direction: column;
  }

  .company-sidebar {
    order: 2;
  }

  .company-main {
    order: 1;
  }
}



.company-sidebar {
  flex: 1 1 30%;
  position: sticky;
  top: 100px; /* attālums no lapas augšas */
  align-self: start; /* nodrošina, ka sticky darbojas arī flex konteinerī */
}


.lang-dropdown {
  position: relative;
  display: inline-block;
  margin-left: 20px;
  cursor: pointer;
  font-family: 'Roboto', sans-serif;
}

.lang-label {
  padding: 6px 10px;
  background: #f2f2f2;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 14px;
  color:black;
}

.lang-options {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 5px;
  display: none;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  min-width: 100%;
}

.lang-options a {
  display: block;
  padding: 8px 12px;
  text-decoration: none;
  color: #333;
  font-size: 14px;
  margin: 0px;
}

.lang-options a:hover,
.lang-options a.active {
  background-color: #0073e6;
  color: #fff;
}

.lang-dropdown:hover .lang-options {
  display: block;
}