  /* Reset and base styles */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family:  Benton Sans Book, Helvetica,sans-serif;
}

body {
    background-color: #fff;
    color: #333;
    line-height: 1.6; 
    display: flex;
    flex-direction: column;  
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    min-height: 100vh;
}  

/* Font imports
----------------- */
@font-face {
    font-display: 'fallback';
    font-family: 'Benton Sans Book';
    src: local('Benton Sans Book');
    src: url('https://www.tableau.com/sites/all/fonts/bentonsans-book.eot#iefix')
        format('embedded-opentype'),
    url('https://www.tableau.com/sites/all/fonts/bentonsans-book.woff2') format('woff2'),
    url('https://www.tableau.com/sites/all/fonts/bentonsans-book.woff') format('woff');
    font-style: normal;
    font-weight: normal;
}

@font-face {
    font-display: 'fallback';
    font-family: 'Merriweather';
    src: local('Merriweather');
    src: url('https://www.tableau.com/sites/all/fonts/merriweather-light.eot#iefix')
        format('embedded-opentype'),
    url('https://www.tableau.com/sites/all/fonts/merriweather-light.woff2') format('woff2'),
    url('https://www.tableau.com/sites/all/fonts/merriweather-light.woff') format('woff');
    font-style: normal;
    font-weight: normal;
}

@font-face {
    font-display: 'fallback';
    font-family: 'Benton Sans Light';
    src: local('Benton Sans Light');
    src: url('https://www.tableau.com/sites/all/fonts/bentonsans-light.eot#iefix')
        format('embedded-opentype'),
    url('https://www.tableau.com/sites/all/fonts/bentonsans-light.woff2') format('woff2'),
    url('https://www.tableau.com/sites/all/fonts/bentonsans-light.woff') format('woff');
    font-style: normal;
    font-weight: normal;
}

@font-face {
    font-display: 'fallback';
    font-family: 'Merriweather';
    src: local('Merriweather');
    src: url('https://www.tableau.com/sites/all/fonts/merriweather-bold.eot#iefix')
        format('embedded-opentype'),
    url('https://www.tableau.com/sites/all/fonts/merriweather-bold.woff2') format('woff2'),
    url('https://www.tableau.com/sites/all/fonts/merriweather-bold.woff') format('woff');
    font-style: normal;
    font-weight: 700;
}

@font-face {
    font-display: 'fallback';
    font-family: 'Merriweather';
    src: local('Merriweather');
    src: url('https://www.tableau.com/sites/all/fonts/merriweather-light-italic.eot#iefix')
        format('embedded-opentype'),
    url('https://www.tableau.com/sites/all/fonts/merriweather-light-italic.woff2') format('woff2'),
    url('https://www.tableau.com/sites/all/fonts/merriweather-light-italic.woff') format('woff');
    font-style: italic;
    font-weight: normal;
}

/* Header styles */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
}

.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* full height of the viewport */
  padding-top: 64px;
}

.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    border-bottom: 1px solid #e5e5e5;
}

.logo {
    height: 35px;
}

.top-nav-links {
    display: flex;
    gap: 25px;
}

.top-nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

.top-nav-links a:hover {
    color: #5f9fd4;
}

.main-nav {
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
}

.main-nav-links {
    display: flex;
    gap: 25px;
}

.main-nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 15px;
    padding: 8px 0;
}

.main-nav-links a:hover {
    color: #5f9fd4;
    border-bottom: 3px solid #5f9fd4;
}

.cta-button {
    background-color: #4e98d3;
    color: white;
    padding: 8px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.cta-button:hover {
    background-color: #3d86c1;
}

/* Search area styles */
.search-container {
    background-color: #fafafa;
    padding: 30px 20px;
    text-align: center;
}

.search-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.search-box {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-input {
    flex: 1;
    padding: 14px 20px;
    border: 1px solid #ccc;
    border-radius: 5px 0 0 5px;
    font-size: 16px;
    outline: none;
}

.search-button {
    /* background-color: #4e98d3; */
    color: white;
    border: none;
    padding: 14px 25px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    font-size: 16px;
}

.search-button img {
    height: 15px;
    width: auto;
}

/* Main content area */
.main-content {
    max-width: auto;
    display: flex;
    flex-direction: row;
    flex: 1;
    gap: 30px;
    padding: 0 20px;
    
    @media (min-width: 1280px) {
      margin: 30px 350px; /* large screens needs responsiveness for other screens */
    }

    @media (min-width: 960px) {
      margin: 30px 150px; /* large screens needs responsiveness for other screens */
    }
}

/* Sidebar filters */
.filters {
    width: 300px;
    background-color: #fff;
    border-radius: 5px;
    padding: 20px;
    align-self: flex-start;
    position: sticky;
    top: 130px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.filter-section {
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-title {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 600;
}

.filter-option {
    margin-bottom: 8px;
}

.filter-checkbox {
    margin-right: 8px;
}

.filter-label {
    font-size: 14px;
}

.filter-count {
    color: #888;
    font-size: 12px;
    margin-left: 5px;
}

/* Results area */
.results {
    flex: 1;
}

.results-header {
    display: none;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.results-count {
    font-size: 16px;
    color: #555;
}

.results-sort {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-label {
    font-size: 14px;
    color: #555;
}

.sort-select {
    padding: 6px 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 14px;
}

/* Results list */
.result-item {
    background-color: #fff;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.result-title {
    font-size: 20px;
    margin-bottom: 10px;
    color: #4e98d3;
}

.result-title a {
    text-decoration: none;
    color: #4e98d3;
}

.result-title a:hover {
    text-decoration: underline;
}

.result-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
}

.result-tag {
    display: inline-block;
    background-color: #f0f5fa;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-right: 5px;
    margin-bottom: 15px;
    color: #4e98d3;
}

.result-description {
    font-size: 15px;
    margin-bottom: 15px;
    line-height: 1.5;
    font-style: italic;
}

.result-snippet {
    font-size: 15px;
    margin-bottom: 15px;
    line-height: 1.5;
}

.result-snippet::before {
    content: '"';
}

.result-snippet::after {
    content: '"';
}

.result-highlight {
    background-color: #fffdd0;
    padding: 2px;
    font-weight: bold;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 30px;
}

.page-button {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.page-button.active {
    background-color: #4e98d3;
    color: white;
    border-color: #4e98d3;
}

.page-button:hover:not(.active):not([disabled]) {
    background-color: #f5f5f5;
}

.page-button[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.page-button:not([data-page]) {
    cursor: default;
}

.container--centered {
    display: flex;
    flex-direction: row;
    height: 100%;
    max-width: 1550px;
    margin: 0 auto;
    width: 100%;
    justify-content: space-between;
    padding: 0 1.6rem;
  }

 
/* Footer
-------------------- */
footer {
    background: #1b1b1b;
    padding: 16px;
    width: 100vw;
    display: flex;
    flex-direction: column;
    
    @media (min-width: 769px) {
      bottom: 0;
      height: 20vh;
    }
  
    .container--centered {
      flex-direction: column;
      text-align: center;
  
      @media (min-width: 768px) {
        align-items: center;
        flex-direction: row;
        flex-grow: 1;
        justify-content: center;
        text-align: justify;
      }
    }
  }


  .footer__copyright,
  .footer__links a {
    color: #bbb;
  }
  
  .footer__links a:hover {
    color: #bbb;
    text-decoration: underline !important;
  }
  
  .copyright-container {
    display: flex;
    justify-content: center;
    color: #bbb;
    font-size: 11px;
  }
  
  .copyright-content, #yearParagraph, #rights-link {
    color: #bbb;
  }
  
  .footer__links {
    > ul {
      list-style: none;
      padding-left: 0;
      font-size: 11px;
  
        > li {
        display: inline;
        padding-right: 32px;
        line-height: 3rem;
  
        @media (min-width: 768px) {
          line-height: 1rem;
        }
      }
    }  
  }

/* Active filters */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.filter-tag {
    display: flex;
    align-items: center;
    background-color: #e8f0f7;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 13px;
}

.filter-tag-text {
    margin-right: 5px;
}

.filter-tag-remove {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ccc;
    color: #fff;
    border-radius: 50%;
    font-size: 10px;
    cursor: pointer;
}

.filter-tag-remove:hover {
    background-color: #999;
}

/* Responsive */
@media (max-width: 900px) {
    .main-content {
        flex-direction: column;
    }
    
    .filters {
        width: 100%;
        position: static;
    }
}

/* Dropup menu
-------------- */
.dropbtn {
  background-color: #333;
  padding: 0.6rem 1.6rem;
  border: none;
  font-family: "Benton Sans Book",Helvetica,sans-serif;
  font-size: 11px !important;
  line-height: 1.86;
  color: #aaa;
  letter-spacing: 1px;
}

.dropup {
  position: relative;
  display: inline-block;
}

.dropup-content {
  display: none;
  position: absolute;
  background-color: #333;
  min-width: 1.3rem;
  bottom: 35px;
  z-index: 1;  
}

.dropup-content a {
  color: #aaa;
  line-height: 1.65;
  padding: 0rem 1rem;
  text-decoration: none;  
  text-transform: none;
  letter-spacing: normal;
  display: block;
}

.dropup-content a:hover {background-color: #ccc}

.dropup:hover .dropup-content {
  display: block;
}

.dropup:hover .dropbtn {
  background-color: #3e8e41;
}

/* Feedback widget styles */
.feedback-container {
    margin: 20px 0;
    padding: 0;
    border: none;
    background: transparent;
    overflow: visible;
}

.feedback-container iframe {
    width: 100%;
    border: none;
    display: block;
    background: transparent;
    overflow: hidden;
}

.clear-filters-btn {
    background: #e8f0f7;
    color: #337ab7;
    border: 1px solid #b6d4ef;
    border-radius: 4px;
    padding: 5px 14px;
    font-size: 13px;
    margin-left: 5px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border 0.2s;
    align-self: center;
    height: 28px;
    display: flex;
    align-items: center;
}
.clear-filters-btn:hover {
    background: #d0e6f7;
    color: #23527c;
    border-color: #7bb6e0;
}

.clear-filters-x {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #ccc;
    color: #fff;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    font-size: 12px;
    margin-right: 6px;
    font-weight: bold;
    line-height: 1;
}
.clear-filters-btn:hover .clear-filters-x {
    background-color: #999;
}

/* No Results Card Styles */
.no-results-card {
    background-color: #f8fafc;
    border-radius: 5px;
    padding: 28px 24px 24px 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
    border: 1px solid #e3e8ee;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.no-results-title {
    font-size: 20px;
    font-weight: 600;
    color: #4e98d3;
    margin-bottom: 12px;
    letter-spacing: 0.01em;
}

.no-results-actions {
    margin-bottom: 16px;
}

.no-results-back {
    display: inline-flex;
    align-items: center;
    background: #e8f0f7;
    color: #337ab7;
    border: 1px solid #b6d4ef;
    border-radius: 4px;
    padding: 5px 14px;
    font-size: 13px;
    margin-left: 0;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border 0.2s;
    height: 28px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 4px;
    outline: none;
    gap: 6px;
}
.no-results-back:hover {
    background: #d0e6f7;
    color: #23527c;
    border-color: #7bb6e0;
    text-decoration: none;
}

.no-results-back-x {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #ccc;
    color: #fff;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    font-size: 12px;
    font-weight: bold;
    margin-right: 6px;
    line-height: 1;
    transition: background 0.2s;
}
.no-results-back:hover .no-results-back-x {
    background-color: #999;
}

.no-results-tips {
    background: #f0f5fa;
    border-radius: 4px;
    padding: 14px 18px;
    margin-top: 8px;
    width: 100%;
}

.no-results-tips-title {
    font-size: 15px;
    font-weight: 500;
    color: #555;
    margin-bottom: 8px;
}

.no-results-tips-list {
    margin: 0;
    padding-left: 20px;
    color: #555;
    font-size: 14px;
    line-height: 1.7;
}

.no-results-tips-list li {
    margin-bottom: 4px;
}

.no-results-query {
    color: #555;
    font-weight: 700;
    background: none;
    border-radius: 0;
    padding: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

fieldset {
  border: none;
  padding: 0;
  margin: 0;
}
