* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
}

body {
  background-color: #f7f7f7;
  font-family: sans-serif;
}

a {
  text-decoration: none;
  color: #32174d;
}

a:hover {
  text-decoration: none;
}
.home-page,
.about-page {
  .main-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    gap: 2rem;
    padding: 0.8rem 1rem;
  }
  .main-container__logo {
    width: 205px;
  }
}

.home-page,
.search-page {
  .search {
    max-width: 590px;
    margin: 0 auto;
    width: 70%;
    position: relative;
    height: 2.8em;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: var(--default-border-radius);
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.06);
    padding: 0 6.5em 0 0.75em;
  }

  .search__fieldset {
    border: none;
    margin: 0;
    padding: 0;
  }

  .search__input {
    appearance: none;
    -webkit-tap-highlight-color: transparent;
    font-size: 1.1em;
    font-weight: normal;
    display: block;
    width: 100%;
    background: none;
    outline: none;
    border: none;
    padding: 0;
    height: 50px;
    z-index: 1;
    position: relative;
    top: -1px;
  }

  .search__button {
    background-image: url(../images/loupe_gray.png);
    background-position: 50% 50%;
    background-repeat: no-repeat;
    background-color: transparent;
    border: none;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    margin: auto;
    z-index: 2;
    width: 2em;
    height: 45px;
    min-width: 26px;
    padding: 0 0.64em;
    font-size: 1.25em;
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
    speak: none; /* Disable speech */
  }

  .search__button:hover,
  .search__button:focus,
  .search:hover .search__button,
  .search:hover .search__button:focus,
  .search__input:hover ~ .search__button,
  .search__input:focus ~ .search__button {
    background-image: url(../images/loupe_white.png);
    background-color: #914d9e;
    color: white;
    outline: none;
  }
}

/* About page styles */
.about-page {
  .main-container {
    height: auto;
    margin: 3rem auto;
  }
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  text-align: left;
}

.about-content h1 {
  font-size: 2.5rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 1.5rem;
}

.about-content h2 {
  font-size: 1.5rem;
  font-weight: bold;
  color: #914d9e;
  margin: 2rem 0 1rem 0;
  border-bottom: 2px solid #914d9e;
  padding-bottom: 0.5rem;
}

.about-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 1.5rem;
}

/* Search page styles */
.search-page {
  .search {
    margin: 0;
  }

  .main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
  }

  .search-results {
    padding: 1rem 0.5rem;
    flex: 0 0 65%;
  }
  .search-results a:hover {
    text-decoration: underline;
  }

  .search-result {
    padding: 0.5rem 0.8rem;
    max-width: 590px;
    margin-bottom: 1.2em;
  }

  .search-result:hover {
    background-color: #e6e6fa;
    border-radius: 0.5rem;
  }

  .search-result__title {
    vertical-align: middle;
    max-width: 100%;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    -ms-text-overflow: ellipsis;
    -o-text-overflow: ellipsis;
    text-overflow: ellipsis;
    line-height: 1.22;
  }
  .search-result__meta {
    white-space: nowrap;
    overflow: hidden;
    margin: 0 0 0.5rem;
  }

  .search-result__url,
  .search-result__url:active,
  .search-result__url:visited,
  .search-result__url:focus {
    color: #20692b;
    font-size: 0.9rem;
  }

  .search-result__icon {
    margin-right: 0.4rem;
  }

  .search-result__snippet a {
    font-size: 0.9rem;
    color: #494949;
    line-height: 1.45;
    margin: 0 0 0.2em;
  }
  .search-result__snippet a:hover,
  .search-result__snippet a:focus {
    color: #00278e;
  }

  .answer-widget {
    padding: 1rem 0.5rem;
    flex: 0 0 35%;
    position: sticky;
    top: 2rem;
    height: fit-content;
  }

  .answer-widget__content {
    background-color: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  }

  .answer-widget__title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
    line-height: 1.3;
  }

  .answer-widget__text {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #4a4a4a;
    margin-bottom: 0.75rem;
  }

  .answer-widget__source {
    font-size: 0.85rem;
    text-decoration: none;
    font-weight: 500;
  }

  .answer-widget__source:hover {
    text-decoration: underline;
  }

  .related-searches {
    background-color: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  }

  .related-searches__title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1rem;
    line-height: 1.3;
  }

  .related-searches__grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .related-searches__button {
    display: block;
    padding: 0.75rem 1rem;
    background-color: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    text-align: center;
    transition: all 0.2s ease;
    line-height: 1.3;
  }

  .related-searches__button:hover {
    background-color: #e6e6fa;
    border-color: #adb5bd;
    text-decoration: none;
  }

  .related-searches--mobile {
    display: none;
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  }
}
.header {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  padding: 1.1rem 1rem 0.5rem;
  border-bottom: 1px solid #d0d0d0;
}

.header__container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header__logo {
  width: 101px;
  height: 60px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .about-content {
    margin: 0 1rem;
    padding: 1.5rem 0;
  }

  .about-content h1 {
    font-size: 2rem;
  }

  .about-content h2 {
    font-size: 1.3rem;
  }

  .about-content p {
    font-size: 1rem;
  }
}

@media (max-width: 1024px) {
  /* Mobile search page adjustments */
  .search-page .main-container {
    flex-direction: column-reverse;
    padding: 0.5rem 1rem;
  }

  .search-page .search-results {
    flex: 0 0 100%;
    padding: 0.5rem 0;
    max-width: 100%;
  }

  .search-page .answer-widget {
    flex: 0 0 100%;
    padding: 0.5rem 0;
    margin-bottom: 1rem;
    max-width: 590px;
    margin-right: auto;
    position: static;
  }

  .search-page .related-searches {
    display: none;
  }

  .search-page .related-searches--mobile {
    display: block;
    margin-top: 1rem;
    max-width: 590px;
  }

  .related-searches__grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .related-searches__button {
    padding: 1rem;
    font-size: 1rem;
  }

  .related-searches__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 500px) {
  .header__container {
    flex-direction: column;
  }
  .home-page .search,
  .search-page .search {
    width: 100%;
  }
}
