html {
  line-height: 1.15;
  /* 1 */
  -ms-text-size-adjust: 100%;
  /* 2 */
  -webkit-text-size-adjust: 100%;
  /* 2 */
}

/* Sections
   ========================================================================== */
/**
 * Remove the margin in all browsers (opinionated).
 */
body {
  margin: 0;
  overflow-y: scroll; /* enable global scrollbar */
}

/**
 * Add the correct display in IE 9-.
 */
article,
aside,
footer,
header,
nav,
section {
  display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */
h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/* Grouping content
   ========================================================================== */
/**
 * Add the correct display in IE 9-.
 * 1. Add the correct display in IE.
 */
figcaption,
figure,
main {
  /* 1 */
  display: block;
}

/**
 * Add the correct margin in IE 8.
 */
figure {
  margin: 1em 40px;
}

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
  box-sizing: content-box;
  /* 1 */
  height: 0;
  /* 1 */
  overflow: visible;
  /* 2 */
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
  font-family: monospace, monospace;
  /* 1 */
  font-size: 1em;
  /* 2 */
}

/* Text-level semantics
   ========================================================================== */
/**
 * 1. Remove the gray background on active links in IE 10.
 * 2. Remove gaps in links underline in iOS 8+ and Safari 8+.
 */
a {
  background-color: transparent;
  /* 1 */
  -webkit-text-decoration-skip: objects;
  /* 2 */
}

/**
 * 1. Remove the bottom border in Chrome 57- and Firefox 39-.
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
abbr[title] {
  border-bottom: none;
  /* 1 */
  text-decoration: underline;
  /* 2 */
  text-decoration: underline dotted;
  /* 2 */
}

/**
 * Prevent the duplicate application of `bolder` by the next rule in Safari 6.
 */
b,
strong {
  font-weight: inherit;
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
b,
strong {
  font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
  font-family: monospace, monospace;
  /* 1 */
  font-size: 1em;
  /* 2 */
}

/**
 * Add the correct font style in Android 4.3-.
 */
dfn {
  font-style: italic;
}

/**
 * Add the correct background and color in IE 9-.
 */
mark {
  background-color: #ff0;
  color: #000;
}

/**
 * Add the correct font size in all browsers.
 */
small {
  font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Embedded content
   ========================================================================== */
/**
 * Add the correct display in IE 9-.
 */
audio,
video {
  display: inline-block;
}

/**
 * Add the correct display in iOS 4-7.
 */
audio:not([controls]) {
  display: none;
  height: 0;
}

/**
 * Remove the border on images inside links in IE 10-.
 */
img {
  border-style: none;
}

/**
 * Hide the overflow in IE.
 */
svg:not(:root) {
  overflow: hidden;
}

/* Forms
   ========================================================================== */
/**
 * 1. Change the font styles in all browsers (opinionated).
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
  font-family: sans-serif;
  /* 1 */
  font-size: 100%;
  /* 1 */
  line-height: 1.15;
  /* 1 */
  margin: 0;
  /* 2 */
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input {
  /* 1 */
  overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select {
  /* 1 */
  text-transform: none;
}

/**
 * 1. Prevent a WebKit bug where (2) destroys native `audio` and `video`
 *    controls in Android 4.
 * 2. Correct the inability to style clickable types in iOS and Safari.
 */
button,
html [type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
  /* 2 */
}

/**
 * Remove the inner border and padding in Firefox.
 */
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */
fieldset {
  padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *    `fieldset` elements in all browsers.
 */
legend {
  box-sizing: border-box;
  /* 1 */
  color: inherit;
  /* 2 */
  display: table;
  /* 1 */
  max-width: 100%;
  /* 1 */
  padding: 0;
  /* 3 */
  white-space: normal;
  /* 1 */
}

/**
 * 1. Add the correct display in IE 9-.
 * 2. Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
  display: inline-block;
  /* 1 */
  vertical-align: baseline;
  /* 2 */
}

/**
 * Remove the default vertical scrollbar in IE.
 */
textarea {
  overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10-.
 * 2. Remove the padding in IE 10-.
 */
[type="checkbox"],
[type="radio"] {
  box-sizing: border-box;
  /* 1 */
  padding: 0;
  /* 2 */
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type="search"] {
  -webkit-appearance: textfield;
  /* 1 */
  outline-offset: -2px;
  /* 2 */
}

/**
 * Remove the inner padding and cancel buttons in Chrome and Safari on macOS.
 */
[type="search"]::-webkit-search-cancel-button,
[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
::-webkit-file-upload-button {
  -webkit-appearance: button;
  /* 1 */
  font: inherit;
  /* 2 */
}

/* Interactive
   ========================================================================== */
/*
 * Add the correct display in IE 9-.
 * 1. Add the correct display in Edge, IE, and Firefox.
 */
details,
menu {
  display: block;
}

/*
 * Add the correct display in all browsers.
 */
summary {
  display: list-item;
}

/* Scripting
   ========================================================================== */
/**
 * Add the correct display in IE 9-.
 */
canvas {
  display: inline-block;
}

/**
 * Add the correct display in IE.
 */
template {
  display: none;
}

/* Hidden
   ========================================================================== */
/**
 * Add the correct display in IE 10-.
 */
[hidden] {
  display: none;
}

html {
  height: 100%;
}

fieldset {
  margin: 0;
  padding: 0;
  -webkit-margin-start: 0;
  -webkit-margin-end: 0;
  -webkit-padding-before: 0;
  -webkit-padding-start: 0;
  -webkit-padding-end: 0;
  -webkit-padding-after: 0;
  border: 0;
}

legend {
  margin: 0;
  padding: 0;
  display: block;
  -webkit-padding-start: 0;
  -webkit-padding-end: 0;
}

input,
button {
  font-family: 'Poppins', sans-serif;
}

* {
  box-sizing: border-box;
}

.menu-bar {
  background-color: white;
  text-align: right;
  margin-top: 20px;
  margin-right: 5%;
}

.menu-bar ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.menu-bar > ul > li {
  display: inline-block;
  margin-right: 20px;
  vertical-align: middle;
}

/* Dropdown trigger (looks like a menu link) */
.menu-dropdown {
  position: relative;
}

.menu-dropdown-trigger {
  font-family: 'Poppins', sans-serif;
  font-size: 1.2em;
  color: grey;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  background: none;
  border: none;
  -webkit-appearance: none;
  appearance: none;
}

.menu-dropdown-trigger:hover,
.menu-dropdown-trigger:focus {
  color: #03747e;
  outline: none;
}

.menu-dropdown-trigger .fa-chevron-down {
  font-size: 0.75em;
  transition: transform 0.2s ease;
}

.menu-dropdown:hover .menu-dropdown-trigger .fa-chevron-down,
.menu-dropdown.menu-dropdown-open .menu-dropdown-trigger .fa-chevron-down {
  transform: rotate(180deg);
}

/* Dropdown panel */
.menu-dropdown-list {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin: 6px 0 0 0;
  padding: 4px 0;
  min-width: 200px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid rgba(3, 116, 126, 0.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  list-style: none;
  z-index: 100;
  text-align: left;
}

.menu-dropdown:hover .menu-dropdown-list,
.menu-dropdown:focus-within .menu-dropdown-list {
  display: block;
}

.menu-dropdown-list li {
  display: block;
  margin: 0;
  padding: 0;
}

.menu-dropdown-list .menu-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 15px;
  font-family: 'Poppins', sans-serif;
  font-size: 1.2em;
  font-weight: normal;
  line-height: normal;
  color: grey;
  white-space: nowrap;
  text-align: left;
  box-sizing: border-box;
  border-left: 3px solid transparent;
  border-radius: 0 4px 4px 0;
  margin-left: 4px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.menu-dropdown-list .menu-link .menu-link-icon {
  flex-shrink: 0;
  width: 1.25em;
  text-align: center;
  color: #03747e;
  opacity: 0.75;
  font-size: 0.95em;
  transition: opacity 0.15s ease, color 0.15s ease;
}

.menu-dropdown-list .menu-link:hover .menu-link-icon,
.menu-dropdown-list .menu-link:focus .menu-link-icon {
  opacity: 1;
  color: #03747e;
}

.menu-dropdown-list .menu-link:hover,
.menu-dropdown-list .menu-link:focus {
  background: rgba(3, 116, 126, 0.06);
  color: #03747e;
  border-left-color: #03747e;
}

.menu-dropdown-list .menu-link::after {
  display: none;
}

.menu-link {
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-size: 1.2em;
  color: grey; /* grey text color */
  position: relative;
}

.menu-link::after {
  content: '';
  display: block;
  margin: auto;
  height: 3px;
  width: 0;
  background: transparent;
  transition: width 0.5s ease, background-color 0.5s ease;
  position: absolute;
  bottom: 0;
  left: 0;
}

.menu-link:hover, .menu-link:focus {
  color: #03747e; /* Color on hover */
}

.menu-link:hover::after, .menu-link:focus::after {
  width: 100%;
  background: #03747e; /* Underline color */
}

.hamburger-menu {
  display: none;
  cursor: pointer;
  font-size: 1.5em;
  margin: 20px;
  color: grey;
}

@media only screen and (max-width: 768px) {
  .hamburger-menu {
      display: block;
  }

  .menu-bar > ul {
      display: none;
      width: 100%;
      text-align: left;
  }

  .menu-bar > ul.active {
      display: block;
  }

  .menu-bar > ul > li {
      display: block;
      margin: 0;
  }

  .menu-dropdown-trigger {
    width: 100%;
    padding: 10px 20px;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
  }

  .menu-dropdown-list {
    display: none;
    position: static;
    margin: 0;
    padding: 0;
    min-width: 0;
    box-shadow: none;
    background: #f8f9fa;
    border-radius: 0;
  }

  .menu-dropdown.menu-dropdown-open .menu-dropdown-list {
    display: block;
    border-bottom: 1px solid #eee;
  }

  .menu-dropdown-list .menu-link {
    padding: 10px 20px 10px 32px;
    font-family: 'Poppins', sans-serif;
    font-size: 1.2em;
    font-weight: normal;
    color: grey;
  }
}


.s130 {
  min-height: 93vh;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-pack: center;
      justify-content: center;
  font-family: 'Poppins', sans-serif;
  background-position: bottom right;
  background-repeat: no-repeat;
  background-size: 100%;
  padding: 15px;
}

.s130 form {
  width: 100%;
  max-width: 790px;
  padding-top: 6vh;
}

.s130 form .logo {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.s130 form .logo img {
  max-width: 60%;
  height: auto;
}

.s130 form .info {
  font-size: 17px;
  color: #505C6D;
  padding-left: 70px;
  text-align: center;
  margin-top: 10px; 
  margin-bottom: 60px; 
}

.s130 form .inner-form {
  display: -ms-flexbox;
  display: flex;
  width: 100%;
  -ms-flex-pack: justify;
      justify-content: space-between;
  -ms-flex-align: center;
      align-items: center;
  box-shadow: 0px 8px 20px 0px rgba(0, 0, 0, 0.15);
  border-radius: 34px;
  overflow: hidden;
  margin-top: 90px; 
  margin-bottom: 30px;
}


.s230 {
  min-height: auto;
  padding-bottom: 0;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-pack: center;
      justify-content: center;
  font-family: 'Poppins', sans-serif;
  background-position: bottom right;
  background-repeat: no-repeat;
  background-size: 100%;
  padding: 15px;
}

.s230 form {
  width: 100%;
  max-width: 1126px;
  padding-top: 6vh;
}

.s230 form .logo {
  display: flex;
  max-width: 790px;
  justify-content: center;
  margin-bottom: 20px;
  margin-left: 168px;
}

.s230 form .logo img {
  max-width: 60%;
  height: auto;
}

.s230 form .inner-form {
  width: 100%;
  overflow: hidden;
}

.s130 form .inner-form .input-field {
  height: 90px;
}

.s130 form .inner-form .input-field .textarea-wrapper {
  position: relative;
  flex-grow: 1;
  display: flex;
  align-items: center;
}

.s130 form .inner-form .input-field textarea {
  border: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin-top: 16px;
  font-size: 16px;
  color: #000;
  resize: none;
  overflow: hidden;
}


.s130 form .inner-form .input-field .placeholder {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  padding: 16px 0;
  font-size: 16px;
  color: #A7ADB6;
  pointer-events: none;
}

.s130 form .inner-form .input-field textarea:-moz-placeholder {
  color: #A7ADB6;
  font-size: 16px;
}

.s130 form .inner-form .input-field textarea::-webkit-input-placeholder {
  color: #A7ADB6;
  font-size: 16px;
}

.s130 form .inner-form .input-field textarea:hover, .s130 form .inner-form .input-field textarea:focus {
  box-shadow: none;
  outline: 0;
}

.s130 form .inner-form .input-field.first-wrap {
  -ms-flex-positive: 1;
      flex-grow: 1;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
      align-items: center;
}

.s130 form .inner-form .input-field.first-wrap textarea:focus::placeholder {
  color: transparent;
}

.s130 form .inner-form .input-field.first-wrap .svg-wrapper {
  min-width: 80px;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-pack: center;
      justify-content: center;
  -ms-flex-align: center;
      align-items: center;
}

.s130 form .inner-form .input-field.first-wrap svg {
  width: 36px;
  height: 36px;
  fill: #505C6D;
}

.s130 form .inner-form .input-field.second-wrap {
  width: 70px; /* adjust width as needed */
}

.s130 form .inner-form .input-field.second-wrap .btn-search {
  height: 50px; /* adjust height as needed */
  width: 50px; /* adjust width as needed */
  border-radius: 50%;
  font-size: 0; /* hide the text */
  color: #fff;
  border: 0;
  cursor: pointer;
  position: relative;
  z-index: 0;
  background: #04a0ad;
  transition: all .2s ease-out, color .2s ease-out;
  font-weight: 300;
  margin-top: 20px; 
  margin-left: 10px; 
}

.s130 form .inner-form .input-field.second-wrap .btn-search:hover {
  background: #03747e;
}

.s130 form .inner-form .input-field.second-wrap .btn-search:focus {
  outline: 0;
  box-shadow: none;
}

.s130 form .inner-form .input-field.second-wrap .btn-search i {
  font-size: 16px; /* adjust icon size as needed */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/*mobile device */

/* Small screens */
/* Hide the search button on screens smaller than 768px */
@media screen and (max-width: 767px) {
  .s130 form .inner-form .input-field.second-wrap {
    display: none;
  }
}

@media screen and (max-width: 767px) {
  .s130 form .inner-form .input-field.first-wrap textarea.placeholder {
    font-size: 12px;
  }

  .s130 form .inner-form .input-field.first-wrap textarea::-webkit-input-placeholder {
    font-size: 12px;
  }

  .s130 form .inner-form .input-field.first-wrap textarea::-moz-placeholder {
    font-size: 12px;
  }

  .s130 form .inner-form .input-field.first-wrap textarea:-ms-input-placeholder {
    font-size: 12px;
  }

  .s130 form .inner-form .input-field.first-wrap textarea:focus::placeholder {
    color: transparent;
  }
}

@media only screen and (max-width: 768px) {
  .s230 form {
      padding-top: 10px;
  }

  .s230 form .logo {
      margin-left: 0;
      justify-content: center;
  }

  .s230 form .logo img {
      max-width: 80%;
  }

  .s230 form .inner-form {
      width: 100%;
      overflow: hidden;
  }

  iframe {
      width: 100% !important;
      height: auto !important;
      max-width: 100%;
  }  
}

/* mobile device end */

.toggle-group {
  /* Add flex container properties to align children vertically */
  display: flex;
  flex-direction: column; /* Stack children vertically */
  align-items: flex-start; /* Aligns items to the start of the flex container */
}

.group-heading {
  margin-bottom: 10px; /* Adjust as needed */
  font-weight: bold;
  color: #b3b2b2;
}

.toggle-switch {
  display: flex;
  align-items: center;
  margin-bottom: 20px; 
}

.toggle-input {
  display: none;
}

.toggle-label {
  position: relative;
  width: 60px;
  height: 30px;
  border-radius: 15px;
  background-color: #ccc;
  transition: background-color 0.3s;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.toggle-label::after {
  content: "";
  display: block;
  position: absolute;
  top: 2px;
  left: 2px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s;
  z-index: 1; /* Add this line to adjust the z-index */
}

.toggle-input:checked + .toggle-label {
  background-color: #049fad;
}

.toggle-input:checked + .toggle-label ~ .toggle-text {
  color: #049fad; /* Set the color when the toggle is checked */
}

.toggle-input:checked + .toggle-label::after {
  transform: translateX(30px);
}

.toggle-icon {
  width: 26px;
  height: 26px;
  display: none;
  position: absolute;
  right: -1px; /* Adjusted to move 2px to the right */
  top: 7px; /* Adjusted to move 2px down */
  color: #04a0ad;
  z-index: 2; /* Add this line to adjust the z-index */
  transition: opacity 0.3s ease 0.3s; /* Added delay of 0.3s */
}

.toggle-input:checked + .toggle-label .toggle-icon {
  display: block;
}

.toggle-text {
  margin-left: 10px;
  font-size: 16px;
  color: #b3b2b2; /* Set the initial color to match the toggle */
  transition: color 0.3s; /* Add transition for smooth color change */
}


/* animation on results loading */
#loading-indicator {
  display: flex;
  justify-content: center;
  align-items: center;
}

.s130 form .pulse {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
}

.s130 form .pulse > div {
  width: 8px;
  height: 8px;
  margin: 0 4px;
  border-radius: 50%;
  background-color: #ccc;
  animation: pulse 1s ease-in-out infinite;
}

.s130 form .pulse > div:nth-child(1) {
  animation-delay: -0.4s;
}

.s130 form .pulse > div:nth-child(2) {
  animation-delay: -0.3s;
}

.s130 form .pulse > div:nth-child(3) {
  animation-delay: -0.2s;
}

.s130 form .pulse > div:nth-child(4) {
  animation-delay: -0.1s;
}

.s130 form .pulse > div:nth-child(5) {
  animation-delay: 0s;
}

/* animation on results loading */
#loading-indicator {
  display: flex;
  justify-content: center;
  align-items: center;
}

#loading-indicator div {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin: 0 6px;
  animation: pulse 1.2s ease-in-out infinite;
}

#loading-indicator div:nth-child(1) {
  animation-delay: 0s;
}

#loading-indicator div:nth-child(2) {
  animation-delay: 0.2s;
}

#loading-indicator div:nth-child(3) {
  animation-delay: 0.4s;
}

#loading-indicator div:nth-child(4) {
  animation-delay: 0.6s;
}

#loading-indicator div:nth-child(5) {
  animation-delay: 0.8s;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.5);
    opacity: 0.5;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
/* animation on results loading */

/* search results */

/* answer header */
#answer-header {
  display: inline-block;
  margin-top: 40px;
}

#answer-header h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

/* feedback icons */
#feedback-icons {
  display: inline-block;
  text-align: right; /* align the icons to the right */
  vertical-align: auto; /* align the icons to the top of the container */
  margin-left: 20px; /* add margin for spacing between the header and icons */
}

#feedback-icons i {
  font-size: 18px; /* adjust the font size of the icons */
  margin-right: 20px; /* add margin for spacing between the icons */
  color: #888;
  cursor: pointer; /* change cursor to clickable hand */
}

#feedback-icons i:hover {
  color: #04a0ad; /* change color on hover */
}

#positive-feedback:before {
  content: "\f164";
}

#negative-feedback:before {
  content: "\f165";
}
/*feedback popup */

/* book loader */
#modern-loader {
    display: none;
    position: relative;
    margin: 40px auto;
    text-align: center;
}

.loader-content {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #03747e;  /* Your brand color */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-text {
    color: #666;
    font-size: 16px;
    font-weight: 500;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Optional pulse effect for the text */
@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.loader-text {
    animation: pulse 1.5s ease-in-out infinite;
}
/* book loader end*/

.feedback-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff;
  border: 1px solid #ccc;
  padding: 20px;
  text-align: center;
  box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.3);
  z-index: 9999;
}

.feedback-popup h2 {
  font-size: 24px;
  margin-top: 0;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.feedback-popup h2 i {
  margin-right: 10px;
}

.feedback-popup textarea {
  width: 100%;
  height: 80px; /* You can adjust the height according to your preference */
  margin-bottom: 10px;
  padding: 5px;
  border: 1px solid #ccc;
  font-size: 14px; /* Set the font size to make text smaller */
  resize: none; /* Prevent resizing */
}

.feedback-popup button {
  background-color: #04a0ad;
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 34px; /* Set the border-radius to create rounded corners */
  margin: 10px;
}

.feedback-popup button:hover {
  background-color: #07868c;
}

.text-success {
  color: #07868c;
}

.text-danger {
  color: rgb(227, 122, 122);
}

.feedback-popup .close-button {
  background-color: grey;
}
.feedback-popup .close-button:hover {
  background-color: rgb(98, 98, 98);
}


/* feedback popup */

/* view and hide list buttons */
#detail-list-controls-header {
  display: inline-block;
  vertical-align: top;  
  justify-content: flex-end;
  float: right;
}

#view-list-btn, #hide-list-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-style: normal;
  color: #505C6D;
  margin-left: 10px;
  padding: 5px;
}

#view-list-btn:hover, #hide-list-btn:hover {
  background-color: #e9e9e9;
  border-radius: 8%;
}

#view-list-btn i, #hide-list-btn i {
  font-size: 18px;
  margin-right: 5px;
  color: #505C6D;
}

@media only screen and (max-width: 768px) {
  #view-list-btn, #hide-list-btn {
    padding: 5px 10px;
  }

  #view-list-btn span, #hide-list-btn span {
    display: none;
  }

  #view-list-btn i, #hide-list-btn i {
    margin-right: 0;
  }
}
/* view and hide list buttons */

#search-results {
  height: auto;
  position: relative; /* add position relative to the search results container */
  line-height: 1.5;
}

#search-result h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

#search-result p {
  margin-top: 10px;
  margin-bottom: 10px;
}

#search-results code {
  white-space: pre-wrap;
  font-family: monospace;
  font-size: 14px;
  line-height: 1.2;
  margin: 10px 0;
  display: block;
  padding: 10px;
  background-color: #f2f2f2;
  border-radius: 5px;
}

#search-results sup {
  text-decoration: none;
}
/* search results */

/* sources */

#sources h3 {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 10px;
}


.source-links .container {
  display: inline-block;
  margin: 10px;
  border: 1px solid #a09f9f95;
  border-radius: 40px;
  padding: 10px;
  padding-right: 20px;
}

.source-links a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #303030;
}

.source-links a:hover {
  color: #07868c; /* Set the link text color to blue on hover */
}

.source-links .favicon-image {
  border-radius: 50%;
  margin-right: 10px;
  max-width: 24px;
  max-height: 24px;
}
/* sources */

/*detailed sources */
#detailed-sources h3 {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 10px;
  }
  
  .detailed-source-links a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #222222;
  }
  
  .detailed-source-links a:hover {
  color: #07868c; /* Set the link text color to blue on hover */
  }
  
  .detailed-source-links .favicon-image {
  border-radius: 50%;
  margin-right: 10px;
  max-width: 24px;
  max-height: 24px;
  }

  .detailed-source-links .book-preview-image-with-border {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;  /* Add a border around the image */
    padding: 5px;  /* Optional: Add some padding inside the border */
    display: block;  /* Make the image a block-level element for proper alignment */  
  }

  .detailed-source-links .book-preview-image {
    display: inline-block;
  }

  .detailed-source-links .buy-now-button {
    display: inline-block;
    margin-top: 10px;  /* Adjust the margin as needed */
    padding: 5px 10px;
    background-color: #07868c;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
  }

  .detailed-source-links .buy-now-button:hover {
    background-color: #04a0ad;
    color: #fff;
  }

  .detailed-source-links .buy-now-button i {
    margin-right: 5px; /* Add some space between the icon and text */
  }
  
  .detailed-source-domain {
  font-weight: bold;
  font-size: 14px;
  }
  
  .detailed-source-url {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #222222;
  font-size: 13px;
  }

  .detailed-source-url:hover {
  color: #07868c; /* Set the link text color to blue on hover */
  }
  
  .detailed-source-snippet {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 10px;
  margin-top: 5px;
  color: #222222;
  }
/*detailed sources */

.centralq-chat-banner {
  position: fixed;
  top: -100px;
  left: 0;
  right: 0;
  background-color: #f8f9fa;
  padding: 15px 20px;
  text-align: center;
  transition: top 0.5s ease-in-out;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid #e9ecef;
}

.banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 20px;
}

.banner-text {
  text-align: left;
  flex-grow: 1;
}

.banner-badge {
  background-color: #03747e;
  color: white;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  margin-right: 10px;
}

.banner-text p {
  margin: 5px 0 0 0;
  color: #6c757d;
}

.banner-learn-more {
  background-color: #03747e;
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 0.2s;
}

.banner-learn-more:hover {
  background-color: #025c64;
  text-decoration: none;
  color: white;
}

.close-banner {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #6c757d;
  padding: 5px;
  z-index: 2;
}

footer {
  left: 0;
  bottom: 0;
  width: 100%;
  background-color: #f2f2f2;
  color: #666;
  text-align: center;
  padding: 2px;
}

.footer-icon, .blog-icon {
  color: #888;
  text-decoration: none;
  margin-left: 5px;
}

.footer-icon:hover, .blog-icon:hover {
  color: #04a0ad;
}

.footer-icon:visited, .blog-icon:visited {
  color: #888;
}

.fa-blog:before {
  content: "\f17a";
}

.blog-icon {
  color: #808080;
  text-decoration: none;
}

.blog-icon:hover {
  color: #04a0ad;
}

.blog-icon:visited {
  color: #808080;
}

.fa-book:before {
  content: "\f02d";
}

.footer-link {
  color: #666;
  margin-left: 10px;
  margin-right: 10px;
}

.footer-link:hover {
  color: #04a0ad;
} 

.sponsor-section {
    margin: 20px 0;
    padding: 8px 16px;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    background-color: #f6f8fa;
}

.sponsor-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 14px;
    color: #666;
    width: 100%;
}

.sponsor-content span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-align: left;
}

.sponsor-content a {
    color: #04a0ad;
    text-decoration: none;
}

.sponsor-content a:hover {
    text-decoration: underline;
}

.sponsor-button {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    border: 1px solid #1b1f2326;
    border-radius: 6px;
    color: #24292e;
    background-color: #fafbfc;
    text-decoration: none;
    transition: background-color 0.2s;
    width: fit-content;
    white-space: nowrap;
    flex-shrink: 0;
}

.sponsor-button:hover {
    background-color: #f3f4f6;
    text-decoration: none;
}

.sponsor-button i {
    color: #bf3989;
    margin-right: 4px;
}

/* Sponsors Page Styles */
.sponsors-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.sponsors-header {
    text-align: center;
    margin-bottom: 40px;
}

.sponsors-header h1 {
    color: #333;
    font-size: 2.5em;
    margin-bottom: 20px;
}

.sponsors-header p {
    color: #666;
    font-size: 1.2em;
    margin-bottom: 30px;
}

.become-sponsor-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #04a0ad;
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
}

.become-sponsor-button:hover {
    background-color: #038791;
}

.become-sponsor-button i {
    color: #fff;
    margin-right: 8px;
}

.sponsors-section {
    margin-bottom: 60px;
}

.sponsors-section h2 {
    color: #333;
    font-size: 2em;
    margin-bottom: 20px;
    text-align: left;
}

.tier-description {
    margin: 0 0 30px 0;
    color: #666;
    max-width: 100%;
    text-align: left;
    padding: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 768px) {
    .tier-description {
        white-space: normal;
    }
}

.sponsors-grid {
    display: grid;
    gap: 30px;
    margin-top: 30px;
}

.hero-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.community-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.sponsor-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.sponsor-card:hover {
    transform: translateY(-5px);
}

.hero-card {
    border: 2px solid #04a0ad;
    padding: 30px;  /* Increased padding */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 400px;  /* Set minimum height */
}

.hero-card h3 {
    font-size: 1.5em;
    margin: 15px 0;
    color: #333;
}

.hero-card .sponsor-bio {
    flex-grow: 1;  /* Take up available space */
    margin: 15px 0;
    line-height: 1.6;
    font-size: 1em;
    color: #666;
}

.sponsor-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.sponsor-logo {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    margin-right: 15px;
}

.sponsor-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 15px;
    display: block;
}

.sponsor-info h3 {
    margin: 0 0 5px;
    color: #333;
}

.github-link {
    color: #666;
    text-decoration: none;
    font-size: 0.9em;
    display: inline-flex;
    align-items: center;
}

.github-link i {
    margin-right: 5px;
}

.github-link:hover {
    color: #04a0ad;
}

.sponsor-bio {
    color: #666;
    font-size: 0.95em;
    line-height: 1.5;
    margin: 0;
}

.community-card {
    text-align: center;
    padding: 20px;
}

.community-card h3 {
    margin: 10px 0 5px;
    color: #333;
}

@media (max-width: 768px) {
    .sponsors-container {
        padding: 20px;
    }

    .sponsors-header h1 {
        font-size: 2em;
    }

    .hero-grid, .community-grid {
        grid-template-columns: 1fr;
    }

    .sponsor-card {
        margin-bottom: 20px;
    }
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

footer {
  margin-top: auto;
}

.sponsors-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.sponsor-logo {
  width: 32px;  /* Matches the height of the sponsor block */
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 8px;
}

.sponsor-text {
  display: inline-flex;
  align-items: center;
}

/* Wrapper for all content except footer */
.content-wrapper {
    flex: 1 0 auto;  /* This will make the content take up available space */
    display: flex;
    flex-direction: column;
}

footer {
    margin-top: auto;
    flex-shrink: 0;  /* Prevent footer from shrinking */
}

/* Placeholder card styles */
.placeholder-card {
    border: 2px dashed #ccc;
    background-color: #f9f9f9;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.placeholder-card:hover {
    border-color: #04a0ad;
    opacity: 1;
    cursor: pointer;
}

.placeholder-card .sponsor-header {
    opacity: 0.8;
}

.placeholder-card h3 {
    color: #888;
}

.placeholder-logo {
    width: 80px;
    height: 80px;
    background-color: #eee;
    border-radius: 10px;
    position: relative;
}

.placeholder-logo::after {
    content: '+';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2em;
    color: #999;
}

.placeholder-avatar {
    background-color: #eee;
    position: relative;
}

.placeholder-avatar::after {
    content: '+';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2em;
    color: #999;
}

.placeholder-card .github-link {
    color: #04a0ad;
}

.placeholder-card .github-link:hover {
    text-decoration: underline;
}

.placeholder-card .sponsor-bio {
    color: #888;
}

/* Make sure placeholder cards maintain consistent height */
.hero-grid .placeholder-card {
    min-height: 200px;
}

.community-grid .placeholder-card {
    min-height: 180px;
}

/* Mobile-friendly improvements */

/* Base responsive container */
.sponsors-container {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

/* Responsive grids */
.sponsors-grid {
    display: grid;
    gap: 20px;
    width: 100%;
}

/* Grid layouts for different screen sizes */
@media (min-width: 1024px) {
    /* Desktop: 3 cards per row */
    .hero-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .community-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    /* Tablet: 2 cards per row */
    .hero-grid, .community-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    /* Mobile: 1 card per row */
    .hero-grid, .community-grid {
        grid-template-columns: 1fr;
    }
    
    /* Adjust padding for mobile */
    .sponsors-container {
        padding: 10px;
    }
    
    /* Make cards more compact on mobile */
    .sponsor-card {
        padding: 15px;
    }
    
    /* Adjust text sizes for mobile */
    h1 {
        font-size: 24px;
    }
    h2 {
        font-size: 20px;
    }
    h3 {
        font-size: 18px;
    }
}

/* Responsive menu */
@media (max-width: 767px) {
    .menu-bar {
        padding: 10px;
    }
    
    .menu-bar > ul {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: #fff;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
    
    .menu-bar > ul.active {
        display: block;
    }
    
    .menu-bar > ul > li {
        display: block;
        margin: 0;
        padding: 0;
        border-bottom: 1px solid #eee;
    }

    .menu-bar > ul > li > .menu-link {
        display: block;
        padding: 10px 20px;
    }
    
    .hamburger-menu {
        display: block;
    }
}

/* Card improvements */
.sponsor-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background: #fff;
    transition: transform 0.2s, box-shadow 0.2s;
}

.sponsor-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.sponsor-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

/* Touch-friendly buttons */
.become-sponsor-button {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 24px;
    font-size: 16px;
    min-height: 44px; /* Touch-friendly size */
    text-align: center;
}

/* Loading states for better UX */
.sponsor-card.loading {
    position: relative;
    overflow: hidden;
}

.sponsor-card.loading::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Update hero sponsor logo size */
.hero-card .sponsor-avatar {
    width: 150px;  /* Increased from 100px */
    height: 150px; /* Increased from 100px */
    border-radius: 50%;
    margin: 0 auto 20px;
    display: block;
    object-fit: cover;
}

/* Add styles for manual sponsor URL display */
.manual-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background-color: #f5f5f5;
    border-radius: 20px;
    color: #666;
    text-decoration: none;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.manual-link:hover {
    background-color: #e5e5e5;
    color: #04a0ad;
}

.manual-link img {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    border-radius: 2px;
}

/* Update placeholder card styles for consistency */
.hero-grid .placeholder-card {
    min-height: 400px;  /* Match hero card height */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-card {
        padding: 20px;
        min-height: 350px;
    }
    
    .hero-card .sponsor-avatar {
        width: 120px;
        height: 120px;
    }
    
    .hero-card h3 {
        font-size: 1.3em;
    }
}

/* AI Star Spinner - with mobile optimization */
.new-year-spinner {
  position: relative;
  width: 50px;  /* Slightly smaller for mobile */
  height: 50px;
  margin: 0 auto;
}

.sparkle {
  position: absolute;
  width: 10px;  /* Slightly smaller stars for mobile */
  height: 10px;
  clip-path: polygon(
      50% 0%,
      65% 35%,
      100% 50%,
      65% 65%,
      50% 100%,
      35% 65%,
      0% 50%,
      35% 35%
  );
  animation: aiSparkle 2s ease-in-out infinite;
  opacity: 0;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Colors and delays remain the same */
.sparkle:nth-child(1) { background: #04a0ad; animation-delay: 0s; }
.sparkle:nth-child(2) { background: #04a0ad; animation-delay: 0.3s; }
.sparkle:nth-child(3) { background: #04a0ad; animation-delay: 0.6s; }
.sparkle:nth-child(4) { background: #04a0ad; animation-delay: 0.9s; }
.sparkle:nth-child(5) { background: #04a0ad; animation-delay: 1.2s; }
.sparkle:nth-child(6) { background: #04a0ad; animation-delay: 1.5s; }

@keyframes aiSparkle {
  0%, 100% {
      opacity: 0;
      transform: 
          translate(
              calc(-50% + cos(var(--angle, 0deg)) * 20px),  /* Smaller radius for mobile */
              calc(-50% + sin(var(--angle, 0deg)) * 20px)
          )
          scale(0);
      background: #04a0ad;
  }
  25% {
      opacity: 1;
      transform: 
          translate(
              calc(-50% + cos(var(--angle, 0deg)) * 20px),
              calc(-50% + sin(var(--angle, 0deg)) * 20px)
          )
          scale(1);
      background: #04a0ad;
  }
  75% {
      opacity: 1;
      transform: 
          translate(
              calc(-50% + cos(var(--angle, 0deg)) * 20px),
              calc(-50% + sin(var(--angle, 0deg)) * 20px)
          )
          scale(1);
      background: #2B3B4E;
  }
}

/* Adjusted glow effect for mobile */
.sparkle::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: #04a0ad;
  filter: blur(2px);  /* Slightly reduced blur for sharper mobile appearance */
  opacity: 0;
  clip-path: inherit;
  animation: glowPulse 2s ease-in-out infinite;
  transform: scale(1.5);
}


/* Rest of the styles remain the same */
.sparkle:nth-child(1) { --angle: 0deg; }
.sparkle:nth-child(2) { --angle: 60deg; }
.sparkle:nth-child(3) { --angle: 120deg; }
.sparkle:nth-child(4) { --angle: 180deg; }
.sparkle:nth-child(5) { --angle: 240deg; }
.sparkle:nth-child(6) { --angle: 300deg; }

