
    .material-card {
      display: flex;
      flex-direction: column;

      background: #1b1e27;

      border: 1px solid #322d26;

      border-radius: 16px;

      overflow: hidden;

      box-shadow: 0 4px 12px rgba(0, 0, 0, .35);

      transition:
        transform .25s ease,
        box-shadow .25s ease;

      height: 100%;
    }

    .material-card:hover {
      transform: translateY(-6px);

      box-shadow: 0 12px 28px rgba(0, 0, 0, .5);
    }

    /* ===========================
   Cover Image
=========================== */

    .material-cover {
      width: 100%;
      height: 250px;

      object-fit: cover;

      background: #262218;

      transition: transform .3s ease;
    }

    .material-card:hover .material-cover {
      transform: scale(1.05);
    }

    /* ===========================
   material Info
=========================== */

    .material-info {
      display: flex;
      flex-direction: column;

      padding: 18px;

      flex: 1;
    }

    /* ===========================
   Title
=========================== */

    .material-info h3 {
      margin: 0;

      font-size: 20px;

      font-weight: 600;

      color: #ece7de;

      text-overflow: ellipsis;
    }


    .material-info p {
      margin: 12px 0 20px;
      color: #a39d94;
      font-size: 15px;
      line-height: 1.6;
      flex: 1;
      overflow: hidden;
      display: -webkit-box;
      -webkit-box-orient: vertical;
    }


    .download-btn {
      display: block;
      text-align: center;
      text-decoration: none;
      padding: 12px 16px;
      background: #f2761c;
      color: #dedede;
      border-radius: 10px;
      font-weight: 600;
      transition: background .2s ease;
    }

    .download-btn:hover {
      background: #ff8a37;
    }

    @media (max-width:768px) {

      .materials-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
        padding: 20px;
      }

      .material-cover {
        height: 300px;
      }

    }

    @media (max-width:500px) {

      .materials-grid {
        grid-template-columns: 1fr;
      }

      .material-cover {
        height: 320px;
      }

    }
.section-tabs {
  display: flex;
  gap: 10px;
  padding: 0 30px;
  margin-top: 10px;
}

.tab-btn {
  background: #1c1a16;
  border: 1px solid #3a352d;
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  color: #d8d2c6;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  font-family: inherit;
}

.tab-btn:hover { border-color: #f2761c; }

.tab-btn.active {
  background: #f2761c;
  border-color: #f2761c;
  color: #14120f;
}

.card-btn-row {
  display: flex;
  gap: 10px;
}

.card-btn-row .view-btn,
.card-btn-row .download-btn {
  flex: 1;
  text-align: center;
}

.view-btn {
  display: block;
  text-decoration: none;
  padding: 12px 16px;
  background: transparent;
  border: 1.5px solid #3a352d;
  color: #d8d2c6;
  border-radius: 10px;
  font-weight: 600;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.view-btn:hover {
  border-color: #f2761c;
  background: #221d15;
}

.pdf-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.pdf-modal.open {
  display: flex;
}

.pdf-modal-inner {
  background: #1c1a16;
  border: 1px solid #322d26;
  border-radius: 12px;
  width: 90%;
  max-width: 900px;
  height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.pdf-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #322d26;
  color: #ece7de;
  font-weight: 600;
  font-size: 14px;
}

.pdf-modal-header button {
  background: transparent;
  border: none;
  color: #d8d2c6;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.pdf-modal-header button:hover { color: #f2761c; }

#pdfModalFrame {
  flex: 1;
  border: none;
  width: 100%;
  background: #14120f;
}

@media (max-width: 768px) {
  .pdf-modal-inner { width: 96%; height: 92vh; }
}

.topbar {
  max-width: 700px;
  margin: 0 auto 20px;
  padding: 0 30px;
}

.searchmodal {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid #3a352d;
  border-radius: 12px;
  padding: 8px;
}

.searchmodal input {
  flex: 1;
  padding: 10px 14px;
  background: transparent;
  border: none;
  outline: none;
  color: #474747;
  font-size: 15px;
  font-family: inherit;
  box-sizing: border-box;
}

.searchmodal input::placeholder {
  color: #a39d94;
}

.searchmodal .buttonbox {
  flex-shrink: 0;
}

.searchmodal button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  padding: 10px 16px;
}

.searchmodal button:hover {
  background: #ff8a37 !important;
}

@media (max-width: 500px) {
  .topbar {
    padding: 0 20px;
  }

  .searchmodal button {
    padding: 10px 14px;
    font-size: 14px;
  }

  .searchmodal button svg {
    display: none; /* keep it compact on small screens */
  }
}
    .materials-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 30px;
      padding: 30px;
    }

.temp{
  background:white;
}