:root {
  --pink: #FF4500;
  --blue: #1e90ff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
  border: none;
  text-decoration: none;
  transition: .2s linear;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f4f4f4;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* ------------------ NAVBAR (Document 2 Style) ------------------ */
nav {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  background: #fff;
  padding: 2rem 9%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
  box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .1);
  width: 100%;
  height: auto;
}

.navbar-container {
  max-width: 100%;
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  flex-wrap: nowrap;
  box-sizing: border-box;
  width: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-logo img {
  height: 60px;
}

.nav-logo .heading {
  font-size: 2.5rem;
  font-weight: bolder;
  color: #333;
  white-space: nowrap;
}

.nav-logo .heading span {
  color: var(--pink);
}

.nav-links {
  display: flex;
  gap: 0;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: #666;
  font-size: 2rem;
  padding: 0 1.5rem;
  display: block;
  transition: all 0.3s ease;
  font-weight: normal;
}

.nav-links a:hover {
  color: var(--pink);
}

.nav-toggle {
  background: none;
  border: none;
  font-size: 3rem;
  color: #333;
  cursor: pointer;
  display: none;
  border-radius: .5rem;
  padding: .5rem 1.5rem;
}

@media (max-width: 865px) {
  nav {
    padding: 2rem;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    width: 100%;
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: clip-path 0.3s ease;
  }

  .nav-links.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }

  .nav-links a {
    width: 100%;
    margin: 0.5rem 0;
    padding: 2.5rem;
    background: #fff;
    text-align: right;
  }

  .nav-logo .heading {
    font-size: 2rem;
  }
}


.container {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 1rem;
  width: 100%;
  box-sizing: border-box;
  min-height: calc(100vh - 85px - 120px);
}

.resource-section {
  background: #a7bed4e6;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  margin-bottom: 2rem;
  border: 1px solid #e2e8f0;
}

.resource-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #000000;
}

.resource-section .notes {
  color: #080808;
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
}

.search-container {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.search-input {
  flex: 1;
  padding: 12px;
  border: 1px solid #2f2d2d;
  border-radius: 6px;
  font-size: 1.4rem;
  transition: border-color 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--blue);
}

.clear-btn {
  padding: 12px 16px;
  border-radius: 6px;
  border: 1px solid #ddd;
  background: #fff;
  color: #666;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.4rem;
}

.clear-btn:hover {
  background: #f5f5f5;
  border-color: #ccc;
}

.resource-meta {
  color: #6b7280;
  font-size: 1.4rem;
  margin: 0.6rem 0;
}

.resource-list {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.resource-card {
  background: linear-gradient(to bottom right, #ffffff, #f1f5f9);
  padding: 1.25rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid #e2e8f0;
}

.resource-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  background: linear-gradient(to bottom right, #ffffff, #e8f0f9);
}

.resource-card h3 {
  color: #333;
  margin: 0;
  font-size: 1.6rem;
}

.resource-card .meta {
  color: #6b7280;
  font-size: 1.3rem;
  margin-top: 0.4rem;
}

.resource-card .desc {
  color: #374151;
  margin: 0.8rem 0;
  font-size: 1.4rem;
}

.resource-actions {
  display: flex;
  gap: 0.8rem;
  margin-top: 1rem;
}

.resource-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 1.4rem;
  transition: all 0.2s ease;
}

.resource-link.primary {
  background: rgba(30, 144, 255, 0.1);
  color: var(--pink);
}

.resource-link.primary:hover {
  background: rgba(30, 144, 255, 0.15);
}

footer {
  flex-shrink: 0;
  background-color: #3f4041;
  color: white;
  padding: 20px 0;
  margin-top: auto;
  width: 100%;
}

.footer-bottom {
  text-align: center;
  padding-top: 1rem;
  font-size: 1.5rem;
}

.footer-bottom .copyright p {
  margin: 0;
  font-size: 1.5rem;
}

.footer-bottom .social-links {
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
}

.footer-bottom .social-links span {
  margin-right: 5px;
  font-size: 1.5rem;
}

.footer-bottom .social-links a {
  color: white;
  font-size: 1.8rem;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

.footer-bottom .social-links a:hover {
  color: orangered;
  background-color: rgba(255, 69, 0, 0.2);
  transform: translateY(-3px);
}
@media (max-width: 992px) {
  .resource-section {
    padding: 1.5rem;
  }

  .resource-section h2 {
    font-size: 1.7rem;
  }
}

@media (max-width: 600px) {
  .resource-section {
    padding: 1.25rem;
  }

  .search-container {
    flex-direction: column;
  }

  .clear-btn {
    width: 100%;
  }
}