 /* ===============================
   GLOBAL PAGE
================================ */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background: #f8faf9;
}

.container {
  padding: 30px 16px;
  max-width: 1300px;
  margin: 0 auto;
}

.page-title {
  text-align: center;
  font-size: 2rem;
  color: #004b87;
  margin-bottom: 25px;
}

/* ===============================
   CATEGORY BAR
================================ */

.category-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 25px;
}

.category-btn {
  padding: 10px 18px;
  background: #004b87;
  color: #fff;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  transition: 0.2s;
  white-space: nowrap;
}

.category-btn:hover,
.category-btn.active {
  background: #004b87;
}

/* ===============================
   SEARCH
================================ */

.search-box {
  text-align: center;
  margin-bottom: 30px;
}

#searchInput {
  width: 100%;
  max-width: 500px;
  padding: 12px 15px;
  border: 2px solid #009f7c;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
}

#searchInput:focus {
  border-color: #006c50;
  box-shadow: 0 0 6px rgba(0, 123, 94, 0.4);
}

/* ===============================
   GRID (AUTO RESPONSIVE)
================================ */

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
}

/* ===============================
   CARD
================================ */

.tech-card {
  display: flex;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
  transition: 0.25s ease;
  cursor: pointer;
  min-height: 180px;
}

.tech-card:hover {
  transform: translateY(-4px);
}

/* IMAGE */
.tech-left {
  width: 150px;
  flex-shrink: 0;
  background: #eee;
}

.tech-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* CONTENT */
.tech-right {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.tech-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #004b87;
}

.tech-details {
  margin-top: 6px;
}

.tech-details p {
  margin: 2px 0;
  font-size: 0.9rem;
  color: #333;
}

/* BUTTON */
.know-more-btn {
  align-self: flex-start;
  padding: 6px 14px;
  font-size: 0.85rem; 
  border: none;
  background: #004b87;
  color: white;
  border-radius: 6px;
  cursor: pointer;
}

.know-more-btn:hover {
  background: #009f7c;
}

/* ===============================
   TABLET
================================ */

@media (max-width: 900px) {

  .page-title {
    font-size: 1.7rem;
  }

  .tech-left {
    width: 130px;
  }
}

/* ===============================
   MOBILE
================================ */

@media (max-width: 600px) {

  .container {
    padding: 20px 12px;
  }

  .tech-card {
    flex-direction: column;
  }

  .tech-left {
    width: 100%;
    height: 180px;
  }

  .tech-right {
    padding: 14px;
  }

  .tech-title {
    font-size: 1rem;
  }

  .know-more-btn {
    width: 100%;
    text-align: center;
  }
}

/* ===============================
   HARD-CODED HEADER MOBILE FIX
================================ */

.menu-toggle {
  display: none;
  font-size: 26px;
  cursor: pointer;
  color: #006c50;
}

@media (max-width: 900px) {

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 65px;
    left: 0;
    width: 100%;
    background: #ffffff;
    flex-direction: column;
    align-items: center;
    display: none;
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
    z-index: 9999;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links a {
    padding: 14px 0;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid #eee;
    color: #006c50;
    text-decoration: none;
  }
}
