body { 
  background: #f9f9f9; 
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; 
}
body.no-interaction {
  pointer-events: none;
  overflow: hidden;
}
.navbar a {
  color: #000;
}
.nav-link{
  padding-left: 0.75rem !important;
  padding-right: 0.75rem !important;
}
.policy-header { 
  padding: 65px 0; 
  background: linear-gradient(90deg, #008000, #00a86b); 
  text-align: center;
  display: none; /* hidden before content load */
}
.policy-header h4 { 
  color: #fff; 
  font-weight: 600; 
  letter-spacing: 1px; 
}
.card-custom { 
  background: #fff; 
  border-radius: 12px; 
  box-shadow: 0 4px 15px rgba(0,0,0,0.08); 
  padding: 30px; 
  margin-bottom: 30px; 
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
.back-button {
    font-size: 20px;
    color: #008000;
    cursor: pointer;
    background: #ffffff;
    border-radius: 100px;
    z-index: 10;
    position: absolute;
    display: inline-block;
    left: -41px;
    top: 34px;
    padding: 21px 22px;
    box-shadow: -9px 5px 11px rgba(0, 0, 0, 0.2);
    width: 50px;
    height: 61px;
    border-top-right-radius: 00px;
    border-bottom-right-radius: 0px;
}
.article-content p {
    font-size: 20px
}
.back-button:hover {
  color: #00a86b;
  transform: translateX(-5px);
}
#policyContent h1, #policyContent h2, #policyContent h3, #policyContent h4 { 
  color: #008000; 
  margin-top: 10px; 
  margin-bottom: 5px; 
  font-weight: 600; 
}
.search-result-item h1, h2, h3, h4 { 
  color: #008000; 
  margin-top: 10px; 
  margin-bottom: 5px; 
  font-weight: 600; 
}
#policyContent p { 
  color: #333; 
  line-height: 1.7; 
  margin-bottom: 15px; 
}
#policyContent ul { 
  margin-left: 20px; 
  margin-bottom: 15px; 
}
#policyContent li { 
  margin-bottom: 8px; 
  color: #555; 
}
#loader, #helpLoader { 
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: none;
  z-index: 1000;
}
.lottie-container {
  width: 200px;
  height: 200px;
  padding-top: 20px;
  padding-bottom: 20px;
  margin: 0 auto;
}
.help-interface {
  background: #fff;
}
.help-interface .card-custom {
  min-height: auto;
}
.search-input-container {
  position: relative;
  margin-bottom: 20px;
}
.search-input {
  width: 100%;
  padding: 15px 50px 15px 50px;
  border: 2px solid #e0e0e0;
  border-radius: 25px;
  font-size: 16px;
  outline: none;
  transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}
.search-input:focus {
  border-color: #008000;
}
.search-input.ready {
  background-color: white;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}
.search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
  font-size: 18px;
  cursor: pointer;
}
.reset-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
  font-size: 18px;
  cursor: pointer;
}
.search-icon:hover {
  color: #000;
}
.previous-searches {
  margin-bottom: 25px;
}
.previous-searches h6 {
  color: #008000;
  margin-bottom: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.previous-searches h6.expanded::after {
  transform: rotate(180deg);
}
.quick-search-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.quick-search-tag {
  background-color: #f5f5f5;
  color: #666;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid #e0e0e0;
}
.quick-search-tag:hover {
  background-color: #e0e0e0;
  color: #333;
  transform: translateY(-1px);
}
.search-results {
  margin-top: 20px;
}
.search-results h6 {
  color: #333;
  margin-bottom: 15px;
  font-weight: 600;
}
.search-result-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.search-result-item:hover {
  background-color: #f0f0f0;
  border-color: #008000;
  transform: translateX(5px);
}
.search-result-title {
  font-weight: 600;
  color: #008000;
  margin-bottom: 5px;
}
.search-result-snippet {
  color: #666;
  font-size: 14px;
  line-height: 1.4;
}
.search-result-source {
  font-size: 12px;
  color: #999;
}
.ai-search-section {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
}
.ai-search-result {
  background: linear-gradient(135deg, #f8f9ff, #f0f4ff);
  border: 1px solid #d1d9ff;
  border-radius: 8px;
  padding: 15px;
  margin-top: 10px;
}
.ai-search-label {
  font-size: 12px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.faq-section {
  position: relative;
  background: #fff;
  border-radius: 8px;
  padding: 10px 15px;
  margin-top: 15px;
}
.faq-section h6 {
  color: #008000;
  margin-bottom: 15px;
  font-weight: 600;
}
.faq-item {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  background: #fff;
  overflow: hidden;
  transition: all 0.3s ease;
}
.faq-item:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.faq-header {
  padding: 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8f9fa;
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.3s ease;
}
.faq-header:hover {
  background: #e9ecef;
}
.faq-title {
  font-weight: 600;
  color: #008000;
  margin: 0;
  font-size: 18px;
}
.faq-toggle {
  color: #666;
  font-size: 20px;
  transition: transform 0.3s ease;
}
.faq-item.expanded .faq-toggle {
  transform: rotate(180deg);
}
.faq-content {
  max-height: 0;
  overflow: auto;
  transition: max-height 0.3s ease;
  scrollbar-width: none
}
.faq-content ::-webkit-scrollbar {
  display: none;
}
.faq-item.expanded .faq-content {
  max-height: 1000px;
}
.faq-body {
  padding: 20px;
  color: #555;
  line-height: 1.6;
}
.faq-body h1, .faq-body h2, .faq-body h3, .faq-body h4, .faq-body h5, .faq-body h6 {
  color: #008000;
  margin-top: 20px;
  margin-bottom: 15px;
  font-weight: 600;
}
.faq-body p {
  margin-bottom: 15px;
}
.faq-body ul, .faq-body ol {
  margin-left: 20px;
  margin-bottom: 15px;
}
.faq-body li {
  margin-bottom: 8px;
}
.no-results {
  text-align: center;
  color: #666;
  padding: 20px;
  font-style: italic;
}
.document-previews {
  background-color: #fff;
  border-radius: 10px;
  padding: 10px;
}
.document-preview {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  margin-bottom: 8px;
  border-bottom: 1px solid #dcdcdc;
  cursor: pointer;
  transition: all 0.3s ease;
}
.document-preview::after {
  font-size: 30px;
  content: "→";
  position: absolute;
  right: 18px;
  opacity: 0;
  transform: translateX(-5px);
  color: #000000;
  font-weight: 900;
  transition: all 0.3s ease;
}
.document-preview:hover::after {
  opacity: 1;
  transform: translateX(0);
}
.document-items {
  display: flex;
  align-items: center;
  width: 100%;
}
.preview-title {
  flex-shrink: 0;
  color: #008000;
  font-weight: 600;
  font-size: 1rem;
  margin-right: 10px;
  white-space: nowrap;
  text-overflow: ellipsis;
  width: 18%;
  height: 18%;
  white-space: pre-wrap;
}
.preview-title h3{
  margin-bottom: 0;
}
.preview-content {
  flex-grow: 1;
  color: #000;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 70%;
}
.preview-content img{
  display: none;
}
.preview-content p{
  margin-bottom: 0;
}
h6 {
  color: #008000;
  font-weight: 700;
  margin-bottom: 10px;
}
.faq-section h6 {
  margin-left: -15px;
}
.faq-section-toggle {
  position: absolute;
  right: 15px;
  top: 12px;
  color: #008000;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.faq-section-toggle.rotated {
  transform: rotate(180deg);
}
#faqResults {
  margin-top: 15px;
}
.helperLoading {
position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
z-index: 100;
}

.loadingBackground {
     position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160px;
    height: 160px;
    border-radius: 50px;
    background: rgb(255 255 255);
    z-index: 5;
    box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.25);
}
.scroll-top-btn {
  position: fixed;
  right: 20px;               
  bottom: 20px;              
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #008000;       
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
  cursor: pointer;
  z-index: 9999;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;     
  transition: opacity 220ms ease, transform 220ms ease;
}

.scroll-top-btn.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-top-btn:focus {
  outline: 3px solid rgba(0,128,0,0.25);
  outline-offset: 2px;
}
.scroll-top-btn:hover {
  transform: translateY(-3px);
}

.scroll-top-btn svg path { fill: #fff; }

h1{
  font-size: 50px;
}

@media (max-width: 768px) {

  .container{
    padding-left: 0px !important;
    padding-right: 0px !important;
  }
  .navbar img {
    width: 95px;
  }
  .navbar-nav .nav-link {
    padding: 10px 0;
  }

  .policy-header {
    padding: 35px 0;
  }
  .policy-header h1 {
    font-size: 22px;
  }
  #policyContent ul{
  margin-left: 0px; 
  }
  .card-custom {
    padding: 20px;
    margin: 15px 0;
    min-height: auto;
  }

  .back-button {
    left: -25px;
    top: 20px;
    padding: 15px 16px;
    width: 40px;
    height: 50px;
    font-size: 16px;
  }

  .article-content h1 {
    font-size: 1.7rem;
  }

  .article-content h2 {
    font-size: 1.5rem;
  }

  .article-content h3 {
    font-size: 1.3rem;
  }

  .article-content p {
    font-size: 16px;
  }

  .search-input {
    padding: 12px 45px;
    font-size: 15px;
  }
  .search-icon {
    left: 15px;
  }
  .reset-icon {
    right: 12px;
  }

  .quick-search-tag {
    padding: 6px 12px;
    font-size: 13px;
  }

  .faq-header {
    padding: 15px;
  }
  .faq-title {
    font-size: 16px;
    font-weight: 400;
  }
  .faq-body {
    padding: 15px;
    font-size: 15px;
  }
.faq-body h1, .faq-body h2{
  font-size: 25px;
}
.faq-body h3, .faq-body h4{
  font-size: 20px;
}
.faq-body ul{
  margin-left: 0px;
}

  .document-preview {
    padding: 10px 12px;
  }

  .preview-title {
    width: 40%;
    font-size: 0.9rem;
  }

  .preview-content {
    max-width: 55%;
    font-size: 0.8rem;
  }

  .scroll-top-btn {
    right: 12px;
    bottom: 120px;
    width: 42px;
    height: 42px;
  }

  .loadingBackground {
    width: 120px;
    height: 120px;
    border-radius: 30px;
  }
  .lottie-container {
    width: 150px;
    height: 150px;
  }
}

@media (max-width: 480px) {

  .policy-header {
    padding: 25px 0;
  }

  .policy-header h1 {
    font-size: 25px;
  }

.helperLoading {
    top: 46%;
}
  .card-custom {
    padding: 15px;
  }

  .search-input {
    padding: 10px 40px;
    font-size: 14px;
  }

  .preview-title {
    font-size: 1rem;
    width: 45%;
  }

  .preview-content {
    font-size: 1rem;
    max-width: 50%;
  }
}
