/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
}

/* navbar */
.primary-navbar {
  background: #ffb300;
  padding: 10px 20px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* primary-navigation Menu */
.primary-nav {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.primary-nav li {
  margin: 0 5px;
}

.primary-nav a {
  color: white;
  text-decoration: none;
  font-size: 10px;
  padding: 5px 10px;
  display: inline-block;
  border-radius: 4px;
  transition: background 0.3s ease, color 0.3s ease;
  font-weight: bold;
}

.primary-nav a:hover {
  background: rgba(255, 119, 0, 0.961);
  color: white;
  font-weight: bold;
  text-decoration: none;
}

/* Styling for Mukhya Prusta */
.mukhya-pusta {
  font-size: 18px;
  font-weight: bold;
  color: white;
  padding: 10px 15px;
  background: rgb(255, 140, 0);
  border-radius: 5px;
  text-decoration: none;
  display: inline-block;
}

.mukhya-pusta:hover {
  color: #ffffff;
  background: rgba(255, 119, 0, 0.961);
  text-decoration: none;
}

/* Hamburger Button */
.hamburger {
  display: none;
  font-size: 24px;
  cursor: pointer;
  color: white;
  background: #ff8c00;
  padding: 10px 15px;
  border-radius: 5px;
  border: none;
  transition: background 0.3s ease, color 0.3s ease;
  margin-left: 0px;
}

/* When Hamburger is Clicked */
.hamburger.active {
  background: #ff8c00;
  color: #333;
  
}

@media (max-width: 2561px) {
  .primary-nav {
    display: flex;
    flex-direction: row; /* Keep links in a horizontal row */
    justify-content: space-between; /* Distribute links evenly */
    align-items: center; /* Align links vertically */
    flex-wrap: nowrap; /* Prevent links from wrapping */
    padding: 10px 20px;
    overflow: hidden; /* Prevent links from moving to a new line */
    max-width: 100%; /* Ensure the primary-navbar does not expand beyond screen width */
  }

  .primary-nav a {
    font-size: 18px;
    padding: 5px 8px; /* Reduce padding to save space */
    white-space: nowrap; /* Prevent text from breaking into two lines */
  }
}

@media (max-width: 1924px) {
  .primary-nav {
    justify-content: space-around; /* Adjust spacing */
    padding: 8px 15px;
    gap: 8px;
  }

  .primary-nav a {
    font-size: 17px;
    padding: 5px 7px;
  }
}

@media (max-width: 1441px) {
  .primary-nav {
    justify-content: space-evenly; /* Spread links evenly */
    padding: 6px 10px;
    gap: 6px;

  }

  .primary-nav a {
    font-size: 16px;
    padding: 4px 6px;
  }
}



@media (max-width:1367px) {
  .primary-nav {
    justify-content: space-evenly; /* Spread links evenly */
    padding: 6px 10px;
    gap: 6px;
  }

  .nav a {
    font-size: 16px;
    padding: 4px 6px;
  }
  .primary-nav h6{
    font-size: 14px;
  }
}


@media (max-width: 1025px) {
  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: brown;
    display: none; /* Initially hidden */
    flex-direction: column; /* Align primary-nav links vertically */
    align-items: center; /* Center-align links */
    padding: 10px 0;
    gap: 5px; /* Reduce space between links */
    position: absolute;
    z-index: 1;
  }

  .primary-nav li {
    width: 100%;
    text-align: center;
  }

  .primary-nav a {
    font-size: 14px; /* Increase readability */
    padding: 10px;
    display: block;
    width: 100%;
  }

  .hamburger {
    display: block; /* Show hamburger menu */
    order: 2;
  }

  .primary-nav.active {
    display: flex; /* Show menu when active */
  }

  .mukhya-pusta {
    font-size: 18px;
    font-weight: bold;
    color: white;
    padding: 10px 15px;
    background: rgba(255, 119, 0, 0.961);
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    margin-left:-5px;
  }
  
  .mukhya-pusta:hover {
    color: #ffffff;
    background: rgba(255, 119, 0, 0.961);
    text-decoration: none;
  }
}


/* Mobile Responsive Design */
@media (max-width: 769px) {
  .primary-navbar {
    flex-direction: row;
    justify-content: space-between;
  }

  .hamburger {
    display: block;
    order: 2;
  }

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: brown;
    flex-direction: column; /* Align links vertically */
    align-items: center;
    padding: 10px 0;
    display: none; /* Initially hidden */
    position: absolute;
    z-index: 1;
  }

  .primary-nav.active {
    display: flex; /* Show menu when active */
  }

  .primary-nav li {
    margin: 5px 0; /* Reduce vertical spacing */
    width: 100%;
    text-align: center;
  }

  .primary-nav a {
    font-size: 14px;
    padding: 10px;
    display: block;
    width: 100%;
  }
}


/* Mobile Responsive Design */
@media (max-width: 426px) {
  .primary-navbar {
    flex-direction: row;
    justify-content: space-between;
  }

  .hamburger {
    order: 2;
  }

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: brown;
    flex-direction: column; /* Align links vertically */
    align-items: center;
    padding: 10px 0;
    display: none; /* Initially hidden */
    position: absolute;
    z-index: 1;
  }

  .primary-nav.active {
    display: flex; /* Show menu when active */
  }

  .primary-nav li {
    margin: 5px 0; /* Reduce vertical spacing */
    width: 100%;
    text-align: center;
  }

  .primary-nav a {
    font-size: 14px;
    padding: 10px;
    display: block;
    width: 100%;
  }
}

@media (max-width: 394px) {
  .primary-nav a {
    font-size: 11px;
  }

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: brown;
    display: none;
    flex-direction: column;
    align-items: center;
    position: absolute;
    z-index: 1;
  }

  .hamburger {
    display: block;
  }

  .primary-nav.active {
    display: flex; /* Show menu when active */
  }

  .primary-nav li {
    width: 100%;
    text-align: center;
    padding: 5px 0;
  }

  .primary-nav a {
    display: block;
    padding: 10px;
    width: 100%;
  }
}


@media (max-width: 375px) {
  .primary-nav a {
    font-size: 11px;
  }

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: brown;
    display: none;
    flex-direction: column;
    align-items: center;
    position: absolute;
    z-index: 1;
  }

  .hamburger {
    display: block;
  }

  .primary-nav.active {
    display: flex; /* Show menu when active */
  }

  .primary-nav li {
    width: 100%;
    text-align: center;
    padding: 5px 0;
  }

  .primary-nav a {
    display: block;
    padding: 10px;
    width: 100%;
  }
}

@media (max-width: 321px) {
  .primary-nav a {
    font-size: 11px;
  }

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: brown;
    display: none;
    flex-direction: column;
    align-items: center;
    position: absolute;
    z-index: 1;
  }

  .hamburger {
    display: block;
  }

  .primary-nav.active {
    display: flex; /* Show menu when active */
  }

  .primary-nav li {
    width: 100%;
    text-align: center;
    padding: 5px 0;
  }

  .primary-nav a {
    display: block;
    padding: 10px;
    width: 100%;
  }
}
