* { box-sizing: border-box; }
html, body { 
  margin: 0; 
  padding: 0; 
}
body {
  background: #e8ebe4;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  color: #1a241e;
  -webkit-text-size-adjust: 100%;
}
a {
  color: #004225;
  text-decoration: underline;
}
a:hover {
  color: #993300;
}

/* Main Container Frame */
.box {
  width: 95%;
  max-width: 1200px;
  margin: 0 auto;
  background: #fffdf6;
  border-left: 2px solid #004225;
  border-right: 2px solid #004225;
  border-top: none;
  border-bottom: none;
}

/* Header & Banner */
.header {
  background: #004225;
  border-bottom: 3px solid #2e734c;
}
.banner {
  color: #ffffff;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.brand {
  display: flex;
  flex-direction: column;
}
.logo {
  font-size: 26px;
  font-weight: bold;
  letter-spacing: -0.5px;
  color: #ffffff;
  text-decoration: none;
  font-family: "Times New Roman", Times, serif;
}
.tagline {
  font-size: 11px;
  color: #cae4d0;
  margin-top: 3px;
}

.search-area {
  display: flex;
  gap: 4px;
  align-items: center;
}
.search-area input {
  border: 1px solid #7ea388;
  padding: 6px 9px;
  font-size: 12px;
  width: 250px;
  background: #ffffff;
  outline: none;
  border-radius: 0;
}
.search-area button {
  background: #196942;
  border: 1px solid #8fc49c;
  color: #ffffff;
  font-weight: bold;
  padding: 6px 15px;
  cursor: pointer;
  font-size: 12px;
  border-radius: 0;
}
.search-area button:hover {
  background: #0d4a2b;
}

/* Navigation Bar */
.nav-bar {
  background: #e2ded4;
  border-top: 1px solid #b8b3a5;
  border-bottom: 1px solid #b8b3a5;
}
.nav-bar ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
}
.nav-bar li {
  margin: 0;
  padding: 0;
  border-right: 1px solid #c4bfb2;
  border-bottom: 1px solid #c4bfb2;
}
.nav-bar a {
  display: block;
  padding: 7px 11px;
  color: #173827;
  text-decoration: none;
  font-size: 11.5px;
  font-weight: bold;
  white-space: nowrap;
}
.nav-bar a:hover {
  background: #ffffff;
  color: #993300;
  text-decoration: underline;
}

/* PC: Hide 'More' Button */
#moreLi {
  display: none !important;
}

/* Search Output Box */
.search-results {
  display: none;
  margin: 14px 20px;
  padding: 12px 16px;
  background: #ffffdf;
  border: 1px solid #c2b772;
}
.search-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed #b8aa58;
  padding-bottom: 6px;
  margin-bottom: 8px;
}
.search-results-title {
  font-weight: bold;
  color: #5c4e0b;
  font-size: 13px;
}
.search-close-btn {
  background: transparent;
  border: none;
  color: #8c421e;
  cursor: pointer;
  font-size: 11px;
  font-weight: bold;
}
.search-close-btn:hover {
  text-decoration: underline;
}
.result-item {
  margin: 5px 0;
}
.result-item a {
  font-size: 12.5px;
  color: #004225;
  font-weight: 500;
}

/* Footer Styles */
.footer {
  background: #004225;
  border-top: 3px solid #2e734c;
  padding: 22px 20px 14px 20px;
  color: #ffffff;
}
.footer-cols {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
  gap: 24px;
}
.footer-title {
  font-weight: bold;
  color: #ffffff;
  border-bottom: 1px solid #2e734c;
  padding-bottom: 5px;
  margin-bottom: 9px;
  font-size: 13px;
  letter-spacing: 0.3px;
}
.footer-links a {
  display: block;
  font-size: 11px;
  margin-bottom: 6px;
  color: #d1e7d8;
  text-decoration: none;
}
.footer-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}
.footer-p {
  font-size: 11px;
  color: #c0dec8;
  line-height: 17px;
  margin: 0;
}
.footer-bottom {
  margin-top: 20px;
  padding-top: 10px;
  border-top: 1px solid #1f5736;
  text-align: center;
  font-size: 11px;
  color: #a8d5b4;
}

/* Responsive Media Queries */
@media screen and (max-width: 820px) {
  .banner { flex-direction: column; align-items: flex-start; }
  .search-area { width: 100%; }
  .search-area input { width: 100%; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}

/* Mobile Screen Strictly 1 Row Header Navbar */
@media screen and (max-width: 768px) {
  .box {
    width: 100%;
    border-left: none;
    border-right: none;
  }
  
  /* Top row 5 items ko barabar 1 row me stretch karega */
  .nav-bar ul {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
  }
  
  /* Initial visible 4 items + More button */
  .nav-bar li.nav-always-visible,
  #moreLi {
    flex: 1 1 auto;
    text-align: center;
  }
  .nav-bar li.nav-always-visible a,
  #moreLi a {
    padding: 7px 4px;
    font-size: 11px;
    text-align: center;
  }

  /* Unit aur baki sabhi items mobile me chupenge jab tak More na click ho */
  .nav-bar .nav-extra {
    display: none;
    width: 50%; /* Click par 2-column clean grid ban kar khulega */
    text-align: left;
  }
  .nav-bar .nav-extra.show-mobile {
    display: block;
  }
  .nav-bar .nav-extra a {
    padding: 7px 10px;
    font-size: 11.5px;
  }

  /* Mobile More button */
  #moreLi {
    display: block !important;
  }
  .nav-more-btn {
    background: #d4cfc1;
    color: #004225 !important;
    cursor: pointer;
    user-select: none;
  }
  .nav-more-btn:hover {
    background: #ffffff;
  }
}

@media screen and (max-width: 600px) {
  .footer-cols { grid-template-columns: 1fr; gap: 16px; }
}