* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  text-decoration: none;
  list-style: none;
}
body {
  font-family: poppins;
  font-size: 16px;
}
/* nav */

nav {
  height: 100px;
  width: 100%;
  /* background: #34495e; */
  background: white;
  /* z-index: 999; */
}
nav ul {
  float: right;
  margin-right: 40px;
}
nav li {
  display: inline-block;
  margin: 0 8px;
  line-height: 80px;
}
.logo {
  padding-top: 10px;
}
nav a {
  color: #555;
  /* font-size: 18px; */
  text-transform: uppercase;
  border: 1px solid transparent;
  padding: 7px 10px;
  border-radius: 3px;
}
a.active,
a:hover {
  border: 1px solid white;
  transition: 0.5s;
  background: white;
}
nav #icon {
  color: #333;
  font-size: 30px;
  line-height: 80px;
  float: right;
  margin-right: 40px;
  cursor: pointer;
  display: none;
}
@media (max-width: 1048px) {
  /* .logo {
    padding-left: 60px;
  } */
  nav ul {
    margin-right: 20px;
  }
  nav a {
    font-size: 17px;
  }
}
@media (max-width: 909px) {
  nav #icon {
    display: block;
  }
  nav ul {
    position: fixed;
    width: 100%;
    height: 100vh;
    background: #2f3640;
    top: 80px;
    left: -100%;
    text-align: center;
    transition: all 0.5s;
  }
  nav li {
    display: block;
    margin: 50px 0;
    line-height: 30px;
  }
  nav a {
    font-size: 20px;
  }
  a.active,
  a:hover {
    border: none;
    color: #3498db;
  }
  nav ul.show {
    left: 0;
  }
}

@media (max-width: 768px) {
  nav #icon {
    display: block;
  }
  nav ul {
    position: fixed;
    width: 100%;
    height: 100vh;
    background: #f5f5f5;
    top: 80px;
    left: -100%;
    text-align: center;
    transition: all 0.5s;
  }
  nav li {
    display: block;
    margin: 50px 0;
    line-height: 30px;
  }
  nav a {
    font-size: 20px;
  }
  a.active,
  a:hover {
    border: none;
    color: #3498db;
  }
  nav ul.show {
    left: 0;
    z-index: 999;
  }
}

/* =================================
   HERO SECTION
================================= */

.resources-hero {
  min-height: 350px;
  background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)), url("../images/resources-banner.jpg");

  background-position: center;
  background-size: cover;
  display: flex;
  align-items: center;
  text-align: center;
  color: #fff;
}

.hero-overlay {
  width: 100%;
  padding: 80px 20px;
}

.hero-content {
  max-width: 800px;
  margin: auto;
}

.eyebrow {
  font-size: 13px;
  letter-spacing: 3px;
  margin-bottom: 15px;
  color: #e9c46a;
  font-weight: bold;
}

.hero-content h1 {
  font-size: clamp(38px, 6vw, 60px);
  margin-bottom: 15px;
}

.hero-content p:last-child {
  font-size: 18px;
  max-width: 650px;
  margin: auto;
}

/* KNOWLEDGE HUB */

.knowledge-hub {
  width: 90%;
  max-width: 1200px;
  margin: 40px auto;
  font-family: "Segoe UI", Tahoma, sans-serif;
  color: #333;
}

/* =================================
   INTRODUCTION
================================= */

.resources-intro {
  padding: 65px 0;
  text-align: center;
}

.resources-intro h2 {
  font-size: 32px;
  color: #173d32;
  margin-bottom: 15px;
}

.resources-intro p {
  max-width: 750px;
  margin: auto;
  color: #666;
}

/* =================================
   RESOURCE LIBRARY
================================= */

.resource-library {
  padding: 50px 0 80px;
  background: #f8f9f7;
}

.library-heading {
  text-align: center;
  margin-bottom: 30px;
}

.library-heading h2 {
  font-size: 30px;
  color: #173d32;
}

.library-heading p {
  color: #666;
}

/* SEARCH */

.resource-search {
  max-width: 650px;
  margin: 0 auto 25px;
}

.resource-search input {
  width: 100%;
  padding: 15px 18px;
  border: 1px solid #ddd;
  border-radius: 7px;
  outline: none;
  font-size: 15px;
  background: #fff;
}

.resource-search input:focus {
  border-color: #276749;
  box-shadow: 0 0 0 2px rgba(39, 103, 73, 0.1);
}

/* FILTER BUTTONS */

.resource-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 10px 18px;
  border: 1px solid #276749;
  border-radius: 25px;
  background: transparent;
  color: #276749;
  cursor: pointer;
  font-size: 14px;
  transition: 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: #276749;
  color: #fff;
}

/* =================================
   FEATURED RESOURCE
================================= */

.featured-resource {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  background: #173d32;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 55px;
  color: #fff;
}

.featured-content {
  padding: 45px;
  align-self: center;
}

.featured-label {
  display: inline-block;
  color: #e9c46a;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 2px;
  margin-bottom: 15px;
}

.featured-content h2 {
  font-size: 30px;
  line-height: 1.3;
  margin-bottom: 15px;
}

.featured-content p {
  color: #e5e5e5;
  margin-bottom: 25px;
}

.featured-image {
  min-height: 280px;
}

.featured-image img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.resource-link {
  display: inline-block;
  color: #276749;
  font-weight: bold;
  margin-top: 15px;
}

.featured-content .resource-link {
  color: #e9c46a;
}

.resource-link:hover {
  text-decoration: underline;
}

/* =================================
   RESOURCE CARDS
================================= */

.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px;
}

.resource-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #fff;
  padding: 28px;
  border: 1px solid #eee;
  border-radius: 10px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.resource-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
}

.resource-icon {
  font-size: 32px;
  margin-bottom: 15px;
}

.resource-category {
  display: inline-block;
  background: #eaf2ed;
  color: #276749;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  margin-bottom: 12px;
}

.resource-card h3 {
  font-size: 20px;
  color: #173d32;
  margin-bottom: 12px;
  line-height: 1.4;
}

.resource-card p {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
}

.resource-card .resource-link {
  margin-top: auto;
  padding-top: 15px;
}

.resource-card[hidden] {
  display: none;
}

.no-resources {
  text-align: center;
  color: #666;
  padding: 30px 10px;
}

/* =================================
   CALL TO ACTION
================================= */

.resources-cta {
  background: #eaf2ed;
  text-align: center;
  padding: 70px 20px;
}

.resources-cta h2 {
  font-size: 30px;
  color: #173d32;
  margin-bottom: 12px;
}

.resources-cta p {
  max-width: 650px;
  margin: 0 auto 25px;
  color: #555;
}

.cta-button {
  display: inline-block;
  padding: 13px 28px;
  background: #276749;
  color: #fff;
  border-radius: 5px;
  font-weight: bold;
  transition: 0.3s ease;
}

.cta-button:hover {
  background: #173d32;
}

/* =================================
   TABLET RESPONSIVENESS
================================= */

@media screen and (max-width: 900px) {
  .resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .featured-resource {
    grid-template-columns: 1fr 1fr;
  }

  .featured-content {
    padding: 30px;
  }
}

/* =================================
   MOBILE RESPONSIVENESS
================================= */

@media screen and (max-width: 600px) {
  .section-container {
    width: 92%;
  }

  .resources-hero {
    min-height: 280px;
  }

  .hero-overlay {
    padding: 60px 15px;
  }

  .hero-content p:last-child {
    font-size: 15px;
  }

  .resources-intro {
    padding: 45px 0;
  }

  .resources-intro h2,
  .library-heading h2 {
    font-size: 25px;
  }

  .resource-library {
    padding: 40px 0 55px;
  }

  .resource-filters {
    justify-content: flex-start;
    gap: 8px;
  }

  .filter-btn {
    padding: 8px 13px;
    font-size: 12px;
  }

  .featured-resource {
    grid-template-columns: 1fr;
  }

  .featured-content {
    padding: 28px 22px;
  }

  .featured-content h2 {
    font-size: 25px;
  }

  .featured-image {
    min-height: 200px;
  }

  .featured-image img {
    min-height: 200px;
    max-height: 230px;
  }

  .resource-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .resource-card {
    padding: 23px;
  }

  .resources-cta {
    padding: 50px 15px;
  }

  .resources-cta h2 {
    font-size: 25px;
  }
}

/* =================================
   SMALL MOBILE DEVICES
================================= */

@media screen and (max-width: 380px) {
  .hero-content h1 {
    font-size: 32px;
  }

  .resources-intro h2,
  .library-heading h2 {
    font-size: 22px;
    padding: 22px 17px;
  }
  .resource-library {
    padding: 22px 17px;
  }

  .filter-btn {
    padding: 7px 10px;
    font-size: 11px;
  }

  .featured-content {
    padding: 22px 17px;
  }

  .resource-card {
    padding: 20px 17px;
  }
}

/* footer */
footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: white;
  background-color: #000;
  padding: 60px 0;
  line-height: 2rem;
}
footer p {
  color: lightgray;
  font-size: 14px;
}
.social {
  font-size: 2rem;
}

@media (max-width: 700px) {
  footer p {
    font-size: 12px;
  }
}

img {
  vertical-align: middle;
}

footer a {
  text-decoration: none;
  color: #fff;
  margin: 10px;
}
footer li i {
  color: #f5f5f5;
}
