html {
  scroll-behavior: smooth;
}

body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #f9f9f9;
  color: #333;
  line-height: 1.6;
}

a {
  text-decoration: underline;
  color: #1a73e8;
}

h1,
h2,
h3,
h4,
h5 {
  font-weight: 300;
}

.container {
  max-width: 900px;
  margin: 0rem auto;
  padding: 3rem 1rem;
}

.slimmer {
  max-width: 40rem;
  margin: auto;
}

.center {
  text-align: center;
}

.card {
  padding: 2rem;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  background-color: white;
}

.grid-2 {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media screen and (min-width: 768px) {
  .grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.card h2 {
  margin-top: 0;
}

ul {
  padding-left: 0.75rem;
}

ol li,
ul li {
  margin-bottom: 0.5rem;
}

ul li:last-child {
  margin-bottom: 0;
}

ul.no-style {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

li ul {
  padding-left: 1.5rem;
}

header {
  background: #2c3e50;
  color: #fff;
  padding: 0rem 1rem 1rem;
}

header h1 {
  margin: 0;
  font-size: 2.5rem;
}

.header-grid {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  margin-top: 2rem;
}

@media screen and (min-width: 768px) {
  .header-grid {
    flex-direction: row;
  }
}

header img {
  max-width: 20rem;
  height: auto;
  border: 4px solid #4c7ca2;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

header p {
  margin-top: 0.5rem;
  max-width: 30rem;
}

header p.lead {
  font-size: 1.2rem;
}

.faint {
  background-color: #eaeaea;
}

.btn {
  display: inline-block;
  background: #1a73e8;
  color: #fff;
  padding: 0.8rem 1.5rem;
  margin: 1rem 0;
  border-radius: 8px;
  font-weight: bold;
  transition: background 0.3s;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover {
  background: #155ab6;
}

.btn.btn-secondary {
  background: #4c7ca2;
  color: #fff;
  padding: 0.8rem 1.5rem;
  margin: 1rem 0;
  border-radius: 8px;
  font-weight: bold;
  transition: background 0.3s;
  cursor: pointer;
  text-decoration: none;
}

.btn.btn-secondary:hover {
  background: #3b6891;
}

h2 {
  color: #2c3e50;
  margin-top: 2rem;
}

#testimonal {
  padding: 3rem 1rem;
  background: #2c3e50;
  color: #fff;
  font-size: 1.2rem;
  line-height: 1.8;
}

cite {
  font-style: italic;
  display: block;
  margin-top: 0.5rem;
}

.modal {
  display: none;
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.modal.show {
  display: block;
  opacity: 1;
}

.modal-content {
  background-color: #fff;
  margin: 5vh auto;
  padding: 2rem;
  border-radius: 0.5rem;
  max-width: 40rem;
  position: relative;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transform: translateY(-20px);
  opacity: 0;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.modal h3 {
  display: flex;
  justify-content: space-between;
}

.modal h3 a {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.modal h3 a svg {
  width: 1.5rem;
  height: auto;
}

.modal.show .modal-content {
  transform: translateY(0);
  opacity: 1;
}

.modal-content h2 {
  padding: 0;
  margin: 0;
}

#modal-body {
  height: calc(100% - 10rem);
  overflow-y: auto;
}

.close {
  color: #aaa;
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
}

summary {
  cursor: pointer;
  padding: 0.5rem 0.25rem 0.5rem;
  border-top: 1px solid #ccc;
  display: flex;
  justify-content: space-between;
}

summary span:first-child {
  font-weight: bold;
}

details p {
  padding: 0.25rem;
}

.notes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.notes-column h3 {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.notes-column ul {
  padding-left: 1.2rem;
}

.notes-column li {
  margin-bottom: 0.6rem;
  line-height: 1.4;
}

/* Responsive stacking for tablets/phones */
@media (max-width: 900px) {
  .notes-grid {
    grid-template-columns: 1fr;
  }
}
