@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Roboto", sans-serif;
}

header {
  width: 100%;
}

/* Top Navbar styling */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fff;
  padding: 10px 30px;
  border-bottom: 3px solid #ddd;
  flex-wrap: wrap;
}

.logo-and-title{
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fff;
  flex-wrap: wrap;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  margin-right: 20px;
}


.logo img {
  width: 60px;
  height: auto;
}

.department-title h1 {
  font-size: clamp(18px, 5vw, 24px);
  color: #333;
  text-align: center;
}

.department-title h2 {
  font-size: clamp(7px, 3vw, 14px);
  color: #555;
  text-align: center;
}

.language-switch a {
  font-size: 14px;
  color: #000;
  text-decoration: none;
}

/* Main Navigation Bar styling */
.main-nav {
  background-color: hsl(37, 31%, 90%);
  padding: 10px;
}

.nav-links {
  display: flex;
  justify-content: space-around;
  list-style-type: none;
}

.nav-links li {
  position: relative;
}

.nav-links li a {
  text-decoration: none;
  color: #000;
  font-weight: bold;
  padding: 10px 20px;
  display: block;
  text-transform: uppercase;
  font-size: 14px;
}

.nav-links li a:hover {
  background-color: #ffbf00;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 30px;
  cursor: pointer;
}


/* Floating Action Button (FAB) */
.fab {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #F4D03F;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.fab img {
  width: 30px;
  height: 30px;
}


/* CSS for Card Section */
.law-cards {
  background-color: black; /* Set background color to black */
  color: white; /* Set font color to white */
  padding: 20px; /* Add padding for spacing */
  text-align: center; /* Center the heading */
}

.law-cards h2 {
  margin-bottom: 20px; /* Space below the heading */
}

.card-container {
  display: flex; /* Use flexbox to align cards horizontally */
  justify-content: center; /* Center the cards in the row */
  flex-wrap: wrap; /* Allow cards to wrap if the screen is small */
}

.card {
  background-color: #333; /* Background color for each card */
  border-radius: 8px; /* Rounded corners for the cards */
  margin: 10px; /* Margin between cards */
  padding: 10px; /* Padding inside the card */
  width: 150px; /* Set a fixed width for the cards */
  text-align: center; /* Center the text in the card */
  transition: transform 0.2s; /* Smooth hover effect */
}

.card img {
  width: 100%; /* Make the image responsive */
  height: 150px; /* Fixed height for all images */
  object-fit: cover; /* Maintain aspect ratio of images */
  border-radius: 5px; /* Rounded corners for images */
}

.card-description h3 {
  margin: 10px 0 5px; /* Space around the heading */
}

.card-description p {
  font-size: 14px; /* Font size for card description */
}

/* FREQUENTLY ASKED QUESTION CSS PART */
.faq {
  background-color: #f2f2f2;
  padding: 20px;
  border-radius: 8px;
}

.faq h2 {
  text-align: center;
  color: #333;
}

.faq-container {
  margin: 20px auto;
  max-width: 800px;
}

.faq-item {
  margin-bottom: 15px;
  padding: 10px;
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.faq-item h3 {
  color: #007bff;
}

.faq-item p {
  color: #555;
}
/*End of the Frequently Asked question here */



/* About Us Section CSS */
.about-us {
  background-color: #222;
  color: #fff;
  padding: 50px 20px;
  text-align: center;
}

.about-us h2 {
  font-size: 36px;
  margin-bottom: 20px;
  color: #00BFFF; /* Sky blue for the heading */
}

.about-us p {
  font-size: 18px;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #ddd; /* Light gray for body text */
}

.about-content {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}

.about-text {
  flex-basis: 45%;
  margin-bottom: 20px;
  background-color: #333;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.about-text h3 {
  font-size: 28px;
  margin-bottom: 10px;
  color: #00BFFF; /* Sky blue for subheadings */
}

.about-text p {
  color: #ccc; /* Light gray for the description text */
  font-size: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .about-content {
      flex-direction: column;
      align-items: center;
  }

  .about-text {
      flex-basis: 100%;
  }
}
/* End of the About Us Section CSS */

/* Chat Box Styling */
.chat-box {
  font-family: "Nunito", sans-serif;
  position: fixed;
  bottom: 100px;
  right: 20px;
  width: 300px;
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  display: none;
  flex-direction: column;
  justify-content: space-between;
}

.chat-header {
  background-color: #F4D03F;
  padding: 10px;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header h3 {
  margin: 0;
}

.agent-info {
  display: flex;
  align-items: center;
}

.agent-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
}

.agent-info h3 {
  margin: 0;
}

/* Tab Bar Styling */
.tab-bar {
  display: flex;
  justify-content: space-around;
  background-color: #f0f0f0;
  padding: 10px;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
}

.tab-button {
  padding: 10px 20px;
  background-color: #fff;
  border: none;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
}

.tab-button.active {
  background-color: #F4D03F;
  border-radius: 5px;
}

.tab-button:hover {
  background-color: #ffbf00;
}

/* Hide voice-body by default */
.voice-body {
  display: none;
  padding: 10px;
  max-height: 400px;
  height: 450px;
  overflow-y: auto;
}

/* Adjust chat-body height */
.chat-body {
  padding: 10px;
  max-height: 350px;
  overflow-y: auto;
  border-bottom: 1px solid #ddd;
}

.chat-footer {
  display: flex;
  justify-content: space-between;
  padding: 10px;
  background-color: #f0f0f0;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.chat-footer input {
  width: 80%;
  padding: 5px;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.chat-footer button {
  background-color: #F4D03F;
  border: none;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
}


/* Container for both icons */
.icon-container {
  display: flex;
  align-items: center;
  gap: 0;
  /* Removes gap between the icons */
}

.enlarge-icon {
  font-size: 18px;
  cursor: pointer;
  margin-right: 5px;
}

#close-chat {
  font-size: 24px;
  cursor: pointer;
}

/*Voice Mode */
.container {
  text-align: center;
  color: #333;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 20px 10px;
}

.top-text {
  font-size: 18px;
  margin-bottom: 5px;
  font-weight: bold;
}

.waveform {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.mic-section {
  margin-top: 10px;
}

.mic-icon {
  font-size: 40px;
  background-color: #ffbf00a4;
  border: 2px solid #ffbf00;
  border-radius: 50%;
  width: 70px;
  height: 70px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.mic-icon:hover {
  background-color: #ffbf00a4;
}

.control-buttons {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-top: 20px;
}

.control {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.control.play {
  background-color: #4A4A4A;
}

.control.cancel {
  background-color: #FF5C5C;
}

.control i {
  font-size: 24px;
  color: white;
}

.control:hover {
  opacity: 0.8;
}

/* Chat body */
.chat-body {
  padding: 10px;
  flex: 1;
  overflow-y: auto;
}

/* Message bubbles */
.message {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  flex-direction: row;
}

.message.user {
  justify-content: flex-end;
}

.message.ai {
  flex-direction: column;
  align-items: flex-start;
}

.message-bubble {
  max-width: 70%;
  padding: 10px 15px;
  border-radius: 15px;
  line-height: 1.4;
  position: relative;
  word-wrap: break-word;
}

/* User message bubble */
.message.user .message-bubble {
  background-color: #ffbf00;
  color: #000000;
  border-bottom-right-radius: 0;
}

/* AI message bubble */
.message.ai .message-bubble {
  background-color: #e9ecef;
  color: #000000;
  border-bottom-left-radius: 0;
}

/* Message bubble arrow */
.message-bubble::after {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border: 10px solid transparent;
}

.message.user .message-bubble::after {
  border-top-color: #ffbf00;
  right: -10px;
  top: 50%;
  border-width: 10px 10px 0 0;
  transform: translateY(-50%);
}

.message.ai .message-bubble::after {
  border-bottom-color: #e9ecef;
  left: -10px;
  top: 50%;
  border-width: 0 10px 10px 0;
  transform: translateY(-50%);
}

/* Updated button alignment */
.message-buttons {
  display: flex;
  gap: 10px;
  /* Adds space between buttons */
  margin-top: 8px;
  margin-left: 10px;
  /* Small margin to create space between bubble and buttons */
}

.message-buttons button {
  background: none;
  border: none;
  color: #333;
  cursor: pointer;
  padding: 5px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}


.message-buttons button i {
  font-size: 18px;
}

.message-buttons button:hover {
  color: #aeaeae;
}

.modal {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  /* Ensure it appears above other elements */
}

.modal-content {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  width: 400px;
  /* Set a fixed width for the modal */
  position: relative;
  /* Position relative for the close button */
}

.modal-content h4 {
  margin-bottom: 10px;
}

.modal-content textarea {
  width: 100%;
  margin-bottom: 10px;
}

.modal-content button {
  background-color: #ffbf00;
  color: black;
  border: none;
  padding: 10px;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
}

.modal-content button:hover {
  background-color: #ffbf00a4;
}

.close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 20px;
  cursor: pointer;
}

.chat-container {
  background-color: white;
  border-radius: 10px;
  padding: 10px;
  height: 300px;
  width: 100%;
}

.greeting {
  font-size: 24px;
  margin-bottom: 30px;
  text-align: left;
}

.quick-replies {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}

.quick-reply-btn {
  background-color: #f0f0f0;
  border: none;
  border-radius: 20px;
  padding: 10px 10px;
  font-size: 12px;
  font-weight: 548;
  cursor: pointer;
  transition: background-color 0.3s;
}

.quick-reply-btn:hover {
  background-color: #e0e0e0;
}

.input-container {
  display: flex;
  align-items: center;
  background-color: #ffffff;
  border-radius: 50px;
  padding: 8px 16px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 500px;
}

.prompt-input {
  flex-grow: 1;
  border: none;
  outline: none;
  font-size: 16px;
  padding: 8px 0;
  color: #333;
}

.prompt-input::placeholder {
  color: #999;
}

.send-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #f0f0f0;
  transition: background-color 0.3s ease;
}

.send-button:hover {
  background-color: #e0e0e0;
}

.send-button i {
  color: #666;
  font-size: 16px;
}

main {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 90vh;
  padding: 20px;
}

.problem-statement {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  max-width: 800px;
  width: 90%;
}

.problem-statement h3 {
  text-align: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.problem-content {
  font-size: 18px;
}

.problem-content p {
  margin: 10px 0;
}

.problem-content strong {
  color: #003366;
}

.header-with-logos {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.header-with-logos h3{
  font-size: clamp(16px, 4vw, 24px);
  text-align: center;
  margin: 0;
}

.logop {
  width: 50px;
  height: 50px;
}

.marq {
  display: flex;
  align-items: center;
  height: 30px;
  overflow: hidden;
}

.marq p {
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

/* Optional: Adjust text color for better contrast with the background */
.marq {
  color: #000000;
  /* Black text color */
}

/* Optional: Add some padding to the sides if needed */
.marq {
  padding-left: 10px;
  padding-right: 10px;
}


/* Media Query for small screens */
@media screen and (max-width: 600px) {

  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #fff;
    border-bottom: 2px solid #e0e0e0;
  }

  /* Styling for the logo, title, and language switch */
  .logo-and-title {
    display: flex;
    justify-content: stretch;
    align-items: center;
    width: 100%;
  }

  .logo img {
    width: 60px;
    height: auto;
    margin-right: 10px;
  }

  .department-title {
    display: flex;
    flex-direction: column;
    width: fit-content;
    width: 68%;
  }

  .department-title h1 {
    margin: 0;
    color: #000;
    text-align: left;
  }

  .department-title h2 {
    margin: 0;
    color: #000;
    text-align: left;
    white-space: nowrap;  
    overflow: hidden;        
    text-overflow: ellipsis;  
    font-weight: normal;
    max-width: 100%;
  }

  .language-switch {
    display: none;
  }

  .language-switch a {
    text-decoration: none;
    font-size: 16px;
    color: #000;
    margin-left: 20px;
  }

  .navbar-center {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
  }

  .menu-toggle {
    background: none;
    border: none;
    font-size: 24px;
    margin-left: 3px;
    cursor: pointer;
    text-align: center;
  }

  .language-switch {
    display: none;
  }

  .menu-toggle {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
  }

  .main-nav {
    width: 100%;
    padding: 0;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: hsl(37, 31%, 90%);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    text-align: center;
  }

  .nav-links li a {
    padding: 15px;
    font-size: 16px;
  }


  .fab {
    width: 50px;
    height: 50px;
  }

  .fab img {
    width: 25px;
    height: 25px;
  }

  .chat-box {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
    display: none;
  }

  .chat-box.active {
    display: flex;
  }

  .chat-header {
    border-radius: 0;
  }

  .chat-body {
    max-height: none;
    flex-grow: 1;
  }

  .voice-body {
    max-height: none;
    height: auto;
    flex-grow: 1;
  }

  .chat-footer {
    border-radius: 0;
  }

  .quick-replies {
    grid-template-columns: 1fr 1fr;
  }

  .input-container {
    max-width: 100%;
  }

  .problem-statement {
    width: 100%;
    padding: 15px;
  }

  .problem-content {
    font-size: 16px;
  }

  .header-with-logos {
    flex-direction: row;
    gap: 10px;
  }

  .logop {
    width: 40px;
    height: 40px;
  }
}

.chat-box {
  transition: all 0.3s ease-in-out;
}