/* Colors */
/*Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background-color: #ffffff;
  color: #1a1a1a;
}

h1 {
  font-size: 2.5rem;
  font-family: Arial, serif;
  font-weight: 500;
  line-height: 3.125rem;
}

h2 {
  margin-bottom: 1.5rem;
}

a {
  color: #004080;
  text-decoration: underline;
}

a:hover {
  color: #003366;
  text-decoration: underline;
}

p {
  padding-bottom: 10px;
}

ul {
  padding: 10px 0 10px 25px;
}

ul li {
  padding-bottom: 10px;
}

img {
  width: 100%;
}

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

/*Grid System */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -0.5rem;
  margin-right: -0.5rem;
}

.row > [class*=col-] + [class*=col-] {
  margin-top: 1rem;
}

.col-12, .col-10, .col-9, .col-6, .col-4, .col-3, .col-2 {
  padding: 0 0.5rem;
  box-sizing: border-box;
}

.col-12 {
  width: 100%;
}

.col-10 {
  width: 83.3333%;
}

.col-9 {
  width: 75%;
}

.col-6 {
  width: 50%;
}

.col-4 {
  width: 33.3333%;
}

.col-3 {
  width: 25%;
}

.col-2 {
  width: 16.6666%;
}

@media (max-width: 1024px) {
  .col-md-12 {
    width: 100%;
  }
  .col-md-9 {
    width: 75%;
  }
}
/*Stack on small screens */
@media (max-width: 768px) {
  .col-3, .col-6, .col-9 {
    width: 100%;
  }
  /* used for 'who is this for' */
  .order-1 {
    order: 1;
  }
  .order-2 {
    order: 2;
  }
  .order-3 {
    order: 3;
  }
  .order-4 {
    order: 4;
  }
  .order-5 {
    order: 5;
  }
  .order-6 {
    order: 6;
  }
}
/* buttons */
.btn {
  appearance: none;
  font: inherit;
  font-size: 0.833rem;
  text-rendering: auto;
  color: white;
  background-color: #004080;
  padding: 0.6rem 1rem;
  border: 2px solid transparent;
  border-radius: 5px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  display: inline-block;
  box-sizing: border-box;
  line-height: normal;
  transition: background-color 0.3s ease;
  margin-right: 15px;
}
.btn-secondary {
  background-color: transparent;
  border-color: #004080;
  color: #004080;
}
.btn-secondary:hover {
  color: white;
}
.btn:hover {
  background-color: #003366;
  color: white;
  text-decoration: none;
}
.btn:focus {
  outline: 2px solid #99c2ff;
  outline-offset: 2px;
}
.btn:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

/* Main Nav Enhancements */
.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}
.nav-bar .logo img {
  height: 40px;
}
.nav-bar .menu-toggle {
  display: none;
}

nav {
  flex-grow: 1;
  padding-right: 50px;
}
nav ul.main-nav {
  display: flex;
  gap: 2rem;
  list-style: none;
  position: relative;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
}
nav ul.main-nav li.nav-item {
  padding: 0;
  position: relative;
}
nav ul.main-nav li.nav-item a {
  position: relative;
  display: block;
  text-decoration: none;
}
nav ul.main-nav li.nav-item .caret {
  font-size: 0.6em;
  margin-left: 5px;
}
nav ul.main-nav li.nav-item ul.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  padding: 0.5rem 0;
  list-style: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 999;
  margin: 0;
  min-width: 160px;
}
nav ul.main-nav li.nav-item ul.dropdown-menu li {
  padding: 0;
}
nav ul.main-nav li.nav-item ul.dropdown-menu li a {
  display: block;
  padding: 0.5rem 1rem;
  color: #004080;
  text-decoration: none;
  white-space: nowrap;
}
nav ul.main-nav li.nav-item ul.dropdown-menu li a:hover {
  background-color: #f1f1f1;
}
nav ul.main-nav li.nav-item.open ul.dropdown-menu {
  display: block;
}
nav ul.main-nav li.nav-item > a:hover::after,
nav ul.main-nav li.nav-item.open > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 4px;
  width: 100%;
  background-color: #004080;
}

/* Mobile Nav */
@media (max-width: 1024px) {
  .nav-bar {
    position: relative;
    flex-wrap: wrap;
  }
  .nav-bar .menu-toggle {
    display: block;
    font-size: 3.5rem;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: 1rem;
    position: absolute;
    top: 0;
    right: 25px;
  }
  nav ul.main-nav {
    display: none;
    flex-direction: column;
    background-color: #fff;
    width: 100%;
    padding: 1rem;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    gap: 0;
    margin-bottom: 1rem;
  }
  nav ul.main-nav.show {
    display: flex;
  }
  nav ul.main-nav.show li.nav-item a {
    padding: 0.5rem 1rem;
  }
  nav ul.main-nav.show li.nav-item a:hover {
    background-color: #f1f1f1;
  }
  nav ul.main-nav.show li.nav-item a:after {
    width: 0px;
  }
  nav ul.main-nav.show li.nav-item .caret {
    display: none;
  }
  nav ul.main-nav.show li.nav-item ul.dropdown-menu {
    display: block;
    position: relative;
    box-shadow: none;
    padding: 0;
  }
  nav ul.main-nav.show li.nav-item ul.dropdown-menu li a {
    padding-left: 1.625rem;
  }
}
/*Search */
.search {
  display: flex;
  align-items: center;
}
.search input {
  padding: 0.4rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.search button {
  padding: 0.4rem 0.8rem;
  background-color: #004080;
  color: white;
  border: none;
  border-radius: 4px;
  margin-left: 0.5rem;
  cursor: pointer;
}
.search button:hover {
  background-color: #003366;
}

@media (max-width: 1024px) {
  .search {
    display: none;
  }
  .intro .search {
    display: block;
  }
}
/*Search Results*/
#searchResults {
  margin-top: 1.5rem;
  list-style: none;
  background: white;
  padding: 0;
  width: 100%;
}
#searchResults li {
  padding: 0.5rem;
  border-bottom: 1px solid #eee;
}
#searchResults li a {
  text-decoration: none;
  color: #004080;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2em 0;
  flex-wrap: wrap;
}

.pagination a {
  margin: 0 6px;
  padding: 8px 14px;
  text-decoration: none;
  border: 1px solid #ccc;
  border-radius: 4px;
  color: #333;
  background-color: #f9f9f9;
  transition: background-color 0.2s ease;
}

.pagination a:hover {
  background-color: #ddd;
}

.pagination a.active {
  background-color: #ccc;
  font-weight: bold;
}

.usa-banner__header-text {
  padding: 0;
}
.usa-banner__inner {
  padding: 0 1rem;
}

.usa-form {
  display: flex;
  flex-direction: column;
}
.usa-form input {
  margin-bottom: 20px;
  padding: 10px;
}
.usa-form fieldset {
  padding: 10px;
  margin-bottom: 25px;
}
.usa-form textarea {
  padding: 10px;
  margin-bottom: 25px;
}
.usa-form .btn {
  width: 200px;
}
.usa-form label[for]:has(+ input[required]),
.usa-form label[for]:has(+ textarea[required]) {
  position: relative;
}
.usa-form label[for]:has(+ input[required])::after,
.usa-form label[for]:has(+ textarea[required])::after {
  content: " *";
  color: red;
  font-weight: bold;
}

@media (min-width: 30em) {
  .usa-form {
    max-width: 30rem;
  }
}
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.centered-flex {
  display: flex;
  justify-content: center; /* horizontal centering */
  align-items: center; /* vertical centering */
}

/* padding */
.p-5 {
  padding: 5px;
}

.p-10 {
  padding: 10px;
}

.pt-5 {
  padding-top: 5px;
}

.px-10 {
  padding: 0 10px;
}

.py-10 {
  padding: 10px 0;
}

.m-0 {
  margin: 0;
}

.left {
  float: left;
}

.right {
  float: right;
}

.d-none {
  display: none;
}

header {
  border-bottom: 1px solid #ccc;
}

/*Hero Section with background image */
.hero {
  color: white;
  padding: 4rem 0;
  text-align: center;
}
.hero.home {
  background: url("../images/Home Page Hero.png") center/cover no-repeat;
}
.hero.contact {
  background: url("../images/Contact us banner.png") right/cover no-repeat;
}
.hero.resources {
  background: url("../images/Publication banner.png") right/cover no-repeat;
}
.hero.partner {
  background: url("../images/Partner with us banner.png") right/cover no-repeat;
}
.hero.about {
  background: url("../images/powerlines.jpg") right/cover no-repeat;
}
.hero h1 {
  color: white;
  text-align: left;
  word-wrap: break-word;
}

section {
  padding: 3rem 0;
}
section.usa-banner {
  padding: 0;
}
section .view-more {
  margin: 10px 0;
  padding: 0;
  text-align: right;
}
section h2 {
  color: #003366;
}
section.blue-background {
  background-color: #304258;
  color: white;
}
section.blue-background h2 {
  color: white;
}
section.gray-background {
  background-color: #F3F3F3;
}

section.partners img.doe-logo {
  width: 200px;
  float: right;
  padding-right: 50px;
}

section.audiences .col-3 {
  align-self: center;
}

section.sparc-offers {
  background: url("../images/powerlines.jpg") left/cover no-repeat;
  color: white;
  background-blend-mode: overlay;
  background-color: rgba(48, 66, 88, 0.5019607843);
}
section.sparc-offers h2 {
  color: white;
}
section.sparc-offers p {
  padding-bottom: 45px;
}
section.sparc-offers .btn {
  border-color: white;
  color: white;
}

@media screen and (max-width: 768px) {
  section .view-more {
    margin-bottom: 20px;
    padding: unset;
    text-align: unset;
  }
}
/*Footer */
footer {
  padding: 1.5rem 0;
  font-size: 0.9rem;
  border-top: 1px solid #ddd;
}
footer p {
  margin: 0 0 20px;
}
footer a {
  margin: 0 1rem;
}
footer a:first-of-type {
  margin: 0 1rem 0 0;
}
footer img {
  display: block;
  filter: invert(100%);
  width: 100%;
}
@media (max-width: 768px) {
  footer .col-2 {
    width: 25%;
  }
  footer .col-10 {
    width: 75%;
  }
}

/* Hide all content sections by default */
.content-section {
  display: none;
}

section.publications {
  padding: 1rem 0;
}
section.publications .content {
  clear: both;
}
section.publications .content .technical,
section.publications .content .white-paper {
  box-shadow: 0 1px 5px #DFE1E2;
  margin-bottom: 25px;
}
section.publications img {
  padding: 5px;
}
section.publications .title,
section.publications .abstract,
section.publications .date,
section.publications .links {
  padding: 10px;
}
section.publications .title a:first-of-type,
section.publications .abstract a:first-of-type,
section.publications .date a:first-of-type,
section.publications .links a:first-of-type {
  padding-right: 25px;
}
section.publications .title {
  font-size: 1.125rem;
  font-weight: bold;
}

/* Show matching sections based on selected radio */
#filter-all:checked ~ .content .content-section {
  display: block;
}

#filter-technical:checked ~ .content .animals,
#filter-plants:checked ~ .content .plants,
#filter-minerals:checked ~ .content .minerals {
  display: block;
}

/* Hide radio buttons */
.filters input[type=radio] {
  display: none;
}

/* Style labels as buttons */
.filters label {
  display: inline-block;
  margin-right: 8px;
  padding: 6px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #f0f0f0;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s, font-weight 0.3s;
  width: auto;
}

/* Highlight the selected label */
.filters input[type=radio]:checked + label {
  background-color: #ccc;
}

/* Show radio buttons on desktop */
.radio-filters {
  display: block;
}

/* Hide select by default */
.select-filter {
  display: none;
}

#filter-select {
  font-size: 1rem;
  height: 40px;
  width: 200px;
}

/* Hide radio buttons and show select below 1024px */
@media (max-width: 1024px) {
  .radio-filters {
    display: none;
  }
  .select-filter {
    display: block;
    margin-bottom: 1em;
  }
}
@media (max-width: 768px) {
  .image-wrapper {
    height: 300px;
    width: 100%;
    overflow: hidden;
  }
  .image-wrapper img {
    height: 150%;
    object-fit: cover;
    object-position: center;
  }
}

/*# sourceMappingURL=styles.css.map */
