html {
  font-size: 17px;
}

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  background: #f6f8fb;
  margin: 0;
  padding: 0;
  color: #1a253a;
}

.demo-intro {
  max-width: 800px;
  margin: 2.5rem auto 2rem auto;
  padding: 1.5rem;
  background: #fff;
  border-radius: 1.2rem;
  box-shadow: 0 2px 16px rgba(5, 5, 5, 0.08);
  text-align: center;
  font-size: 1.5rem;
  color: #273050;
}

.scroll-label {
  font-weight: 700;
  margin-bottom: 1rem;
  color: #2d3a61;
  font-size: 1.1rem;
  display: block;
}

.risk-list li:hover,
.risk-list li.selected {
  background: #eaf3ff;
  color: #19539b;
}
.back-link {
  display: block;
  text-align: center;
  margin: 2.5rem 0 1rem 0;
}
.back-link a {
  color: #19539b;
  text-decoration: none;
  font-weight: 600;
  background: #eaf3ff;
  padding: .6em 1.2em;
  border-radius: .8em;
  font-size: 1.04em;
  transition: background 0.15s;
}
.back-link a:hover {
  background: #d1e6ff;
}
.selection-result {
  margin-top: 2rem;
  font-size: 1.1rem;
  color: #213055;
  background: #eaf3ff;
  border-radius: 0.7rem;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 1px 4px rgba(90, 110, 160, 0.07);
  display: none;
}
@media (max-width: 540px) {
  .scroll-container {padding: 1rem;}
  .demo-intro {padding: 1rem;}
  .risk-list {max-height: 60vw;}
}
.dropdown-control {
  margin-bottom: 1.2em;
  font-size: 1em;
  padding: 0.35em 0.7em;
  border-radius: 0.5em;
  border: 1px solid #b6c6e3;
  margin-right: 0.7em;
}
.subcategory-list li:hover, .subcategory-list li.hover {
  background: #eaf3ff;
  color: #19539b;
}
.subcategory-list li.selected {
  background: #cfe3fd;
  color: #19539b;
}

.search-label,
.scroll-label,
.dropdown-label,
.amount-label {
  font-weight: 700;
  margin-bottom: 1rem;
  color: #2d3a61;
  font-size: 1.1rem;
  display: block;
}

.dropdown-control {
  margin-bottom: 1.2em;
  font-size: 1em;
  padding: 0.35em 0.7em;
  border-radius: 0.5em;
  border: 1px solid #b6c6e3;
  margin-right: 0.7em;
  background: #fafdff;
  color: #223973;
  transition: border 0.15s;
}

.dropdown-control:focus {
  outline: none;
  border: 2px solid #7bb3ff;
}

.risk-list {
  max-height: 320px;
  overflow-y: auto;
  background: #fafdff;
  border-radius: 1rem;
  padding: 0.8em 0.5em;
  margin: 0;
  list-style: none;
  box-shadow: 0 1px 6px rgba(60,80,120,0.09);
  font-size: 1.07rem;
  font-family: inherit;
}

.risk-list li {
  padding: 0.65em 1em;
  cursor: pointer;
  border-radius: 0.7em;
  margin-bottom: 0.2em;
  transition: background 0.14s, color 0.12s;
  color: #1e2e57;
}

.risk-list li:hover,
.risk-list li.selected {
  background: #eaf3ff;
  color: #19539b;
}

.selection-result {
  margin-top: 2rem;
  font-size: 1.1rem;
  color: #213055;
  background: #eaf3ff;
  border-radius: 0.7rem;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 1px 4px rgba(90, 110, 160, 0.07);
  display: none;
}

#googleScholarBox {
  margin: 2em auto 1em auto;
  max-width: 480px;
  text-align: center;
  background: #fffbe9;
  border: 1.5px solid #f0cb53;
  border-radius: 0.8em;
  box-shadow: 0 1px 8px #fbeec2;
  padding: 1.2em 1em 1.2em 1em;
}

#googleScholarBox span {
  font-weight: 700;
  color: #a87f1d;
}

#googleScholarLink {
  color: #19539b;
  text-decoration: underline;
  word-break: break-all;
}

.back-link {
  text-align: center;
  margin: 2.2rem 0 1.3rem 0;
}
.back-link a {
  color: #19539b;
  text-decoration: none;
  font-weight: 600;
  background: #eaf3ff;
  padding: .6em 1.2em;
  border-radius: .8em;
  font-size: 1.04em;
  transition: background 0.15s;
}
.back-link a:hover {
  background: #d1e6ff;
}

/* Responsive */
@media (max-width: 700px) {
  .demo-intro, .demo-intro h2,.scroll-container { padding: 1rem; font-size: 1rem;}
  .scroll-container { max-width: 99vw; padding: 0.7rem;}
  .risk-list { font-size: 0.95em;}
}

.hero {
  position: relative;
  min-height: 320px;
  background: url('/IMAGES/unsplash.jpeg') center center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(29, 41, 81, 0.45); /* Optional: dark overlay */
  z-index: 1;
  border-radius: inherit;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}
.hero-title {
  color: #fff;
  font-size: 2.7rem;
  font-weight: 700;
  letter-spacing: 1px;
}

/* Hero Section */
.hero {
  position: relative;
  background: linear-gradient(120deg, #d2e5fd 0%, #eaf3ff 100%);
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 18px rgba(50, 70, 120, 0.07);
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.50);
  border-radius: 0 0 1.5rem 1.5rem;
}
.hero-content {
  position: relative;
  z-index: 2;
}
.hero-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.7rem;
  font-weight: 700;
  color: #1a2956;
  letter-spacing: .02em;
  margin: 2.2rem 0 1.2rem 0;
}

/* Intro Section */
.intro {
  max-width: 900px;
  margin: 2.5rem auto 1.8rem auto;
  padding: 1.4rem 2rem 1.3rem 2rem;
  background: #fff;
  border-radius: 1.15rem;
  box-shadow: 0 2px 18px rgba(60,80,120,0.07);
  text-align: justify;
  font-size: 1.5rem;
  color: #273050;
  line-height: 1.5;
}

/* CTA Section 
.cta-section {
  max-width: 900px;
  margin: 2.5rem auto 2rem auto;
  background: #B4EBE6;
  border-radius: 1.2rem;
  box-shadow: 0 2px 16px rgba(60, 80, 120, 0.08);
  padding: 2.2rem 1.5rem 2.4rem 1.5rem;
  text-align: center;
}*/

.cta-section {
  text-align: center;
  background: #222d4c;
  padding: 2.5rem 1rem 2rem 1rem;
  color: #fff;
  border-radius: 2rem 2rem 0 0;
  box-shadow: 0 -2px 24px rgba(34,45,76,0.05);
  margin-top: 2rem;
}
.cta-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}
.cta-btn {
  background: #7bb3ff;
  color: #222d4c;
  font-weight: 700;
  font-size: 1.1rem;
  border: none;
  padding: 0.85rem 2.2rem;
  border-radius: 1.5rem;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 0.7rem;
  box-shadow: 0 2px 8px rgba(22, 28, 54, 0.10);
}
.cta-btn:hover {
  background: #5393e6;
  color: #fff;
}
.cta-btn-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
}


/*
.cta-btn, .cta-btn-outline {
  font-family: inherit;
  font-weight: 600;
  font-size: 1.06rem;
  border-radius: 0.85em;
  padding: 0.72em 1.6em;
  border: none;
  outline: none;
  cursor: pointer;
  margin-bottom: 0.6em;
  transition: background 0.16s, color 0.14s, border 0.16s;
}*/

.cta-btn {
  background: #2067e3;
  color: #fff;
  border: 1.5px solid #2067e3;
  box-shadow: 0 1px 6px rgba(32,103,227,0.09);
}
.cta-btn:hover {
  background: #1347b6;
  border-color: #1347b6;
  color: #fff;
}
.cta-btn-outline {
  background: #eaf3ff;
  color: #19539b;
  border: 1.5px solid #bcd7f6;
}
.cta-btn-outline:hover {
  background: #d1e6ff;
  color: #1347b6;
  border-color: #8dc0ef;
}

/* Footer */
footer {
  text-align: center;
  color: #8793af;
  background: none;
  padding: 2rem 0 1rem 0;
  font-size: .99em;
}

/* Responsive */

@media (max-width: 520px) {
  .hero-title { font-size: 2.1rem;}
  .cta-btn-group { flex-direction: column; gap: 0.5rem;}
  .intro { padding: 1rem 0.6rem; font-size: 1.06rem;}
  .cta-section { padding: 1.2rem 0.6rem; }}
  .header-image-hero {
  position: relative;
  width: 100%;
  max-height: 320px;
  overflow: hidden;
  margin-bottom: 2rem;
  border-radius: 0 0 1.3rem 1.3rem;
  box-shadow: 0 3px 16px rgba(50, 50, 93, 0.09);
}

.header-image-hero img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
  border-radius: 0 0 1.3rem 1.3rem;
}

.header-title-overlay {
  position: absolute;
  left: 0; right: 0; top: 50%;
  transform: translateY(-50%);
  text-align: center;
  color: #fff;
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-shadow: 0 4px 18px rgba(0,0,0,0.40), 0 1px 4px rgba(0,0,0,0.18);
  width: 100%;
  padding: 0 1rem;
  pointer-events: none;
}

@media (max-width: 720px) {
  .header-image-hero img {
    height: 180px;
  }
  .header-title-overlay {
    font-size: 1.5rem;
    padding: 0 .5rem;
  }
}
.demo-intro h2 {
  font-size: 2.1rem;
  color: #253053;
  font-weight: 800;
  margin-bottom: 0.4em;
  letter-spacing: 0.01em;
}

.demo-intro p {
  font-size: 1.15rem;
  color: #495178;
  margin-top: 0.4em;
  margin-bottom: 0.2em;
  font-weight: 500;
}

.scroll-container {
  max-width: 800px;
  margin: 2.5rem auto 2.2rem auto;
  padding: 2rem 1.5rem 2.3rem 1.5rem;
  background: #fff;
  border-radius: 1.4rem;
  box-shadow: 0 2px 20px rgba(44,60,130,0.10);
  position: relative;
  text-align: left;
}

.search-label {
  font-weight: 700;
  color: #223a67;
  font-size: 1.09rem;
  margin-bottom: .7em;
  margin-top: 1.2em;
  display: block;
  letter-spacing: 0.01em;
}
.search-label:first-of-type { margin-top: 0; }

.tool-dropdown {
  width: 100%;
  font-size: 1.10em;
  padding: 0.75em 1em;
  border-radius: 0.85em;
  border: 1.5px solid #b6c6e3;
  background: #f9fbff;
  margin-bottom: 0.7em;
  margin-top: 0.2em;
  color: #2a3657;
  transition: border 0.17s;
  box-shadow: 0 1px 6px rgba(60,80,120,0.07);
  outline: none;
  font-family: inherit;
}

.tool-dropdown:focus {
  border: 2px solid #5397e7;
  background: #f4f8ff;
}

.result-box {
  margin-top: 2em;
  background: #eaf3ff;
  border-radius: 0.8em;
  box-shadow: 0 1px 8px #b8c7df;
  padding: 1.1em 1em;
  font-size: 1.07em;
  color: #2a3657;
  display: none;
}

.result-label {
  color: #253053;
  font-weight: 700;
  font-size: 1.09em;
  margin-bottom: 0.2em;
  display: block;
}

.result-additional {
  color: #4a5e8a;
  font-size: 1em;
  margin-top: 0.8em;
}

.back-link {
  display: block;
  text-align: center;
  margin: 2.5rem 0 1.4rem 0;
}
.back-link a {
  color: #19539b;
  text-decoration: none;
  font-weight: 700;
  background: #eaf3ff;
  padding: .7em 1.4em;
  border-radius: .95em;
  font-size: 1.1em;
  box-shadow: 0 1px 7px #d9e8ff;
  transition: background 0.15s;
  border: none;
}
.back-link a:hover {
  background: #d1e6ff;
  color: #0a2557;
}

.smaller-text { font-size: 0.95em; color: #7a8097; }

#loginModal .modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 90;
}
#loginModal .modal-panel {
  position: fixed; z-index: 99; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(92vw, 420px); background: #fff; border-radius: 14px;
  box-shadow: 0 18px 55px rgba(0,0,0,.20); padding: 22px 18px 18px;
}
.modal-close { position: absolute; top: 10px; right: 10px; border: none; background: transparent;
  font-size: 18px; cursor: pointer; color: #6b7280; }
.form-label { display:block; font-weight:700; margin: 10px 0 6px; }
.form-input { width:100%; padding:10px 12px; border:1px solid #cfd7e6; border-radius: 10px; font-size: 1rem; outline: none; }
.form-input:focus { border-color:#2787ff; box-shadow: 0 0 0 2px rgba(39,135,255,0.12); }
.form-error { color:#b00020; margin-top:10px; font-size:0.95rem; }


