/* styles.css */

/* Font & Base */
body {
  font-family: 'Inter Tight', sans-serif;
  background: #0e0e0e;
  color: #f5f5f5;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Header */
.sop-header {
  text-align: center;
  padding: 60px 20px 40px;
}

.sop-title {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.sop-subtitle {
  font-size: 1rem;
  color: #aaa;
  margin-top: 8px;
}

.sop-search {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.search-input {
  width: 320px;
  padding: 12px 16px;
  border-radius: 30px;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  transition: 0.3s ease;
}

.search-input:focus {
  background: rgba(255, 255, 255, 0.15);
}

.search-icon {
  color: #888;
  font-size: 1.2rem;
}

/* Grid Layout */
.sop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  padding: 40px 60px;
}

/* Liquid Glass Cards */
.sop-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.05),
              0 8px 20px rgba(0, 0, 0, 0.4);
  transition: all 0.35s ease;
}

.sop-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 30px rgba(255, 255, 255, 0.08),
              inset 0 0 25px rgba(255, 255, 255, 0.1);
}

/* Make entire card clickable */
.sop-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  border-radius: 22px; /* match card radius */
}

/* Ensure hover applies when hovering the link */
.sop-card-link:hover .sop-card {
  transform: translateY(-10px) scale(1.03);
  background: rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 0 35px rgba(255, 255, 255, 0.12),
    inset 0 0 55px rgba(255, 255, 255, 0.06),
    0 15px 35px rgba(0, 0, 0, 0.55),
    0 0 20px rgba(255, 255, 255, 0.12);
}


/* Icons */
.sop-icon {
  font-size: 2rem;
  color: #f5f5f5;
  margin-bottom: 15px;
  opacity: 0.85;
}

/* Card Text */
.sop-card-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.sop-card-desc {
  font-size: 0.9rem;
  color: #bbb;
  line-height: 1.4;
}

/* Footer */
.sop-footer {
  text-align: center;
  padding: 40px 0;
  color: #777;
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* -------------------------------------- */
/* SUBPAGE HEADER */
/* -------------------------------------- */

.subpage-header {
  padding: 40px 40px 20px;
  text-align: left;
  color: #fff;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #aaa;
  text-decoration: none;
  font-size: 0.95rem;
  transition: 0.3s ease;
}

.back-button:hover {
  color: #fff;
}

.subpage-title {
  font-size: 2rem;
  font-weight: 700;
  margin-top: 20px;
}

.subpage-subtitle {
  font-size: 1rem;
  color: #888;
  margin-top: 6px;
}


/* -------------------------------------- */
/* SOP SUBPAGE GRID */
/* -------------------------------------- */

.sop-subgrid {
  gap: 25px;
  padding: 30px 40px 80px;
}


/* -------------------------------------- */
/* SOP SUBCARDS (List of SOPs) */
/* -------------------------------------- */

.sop-subcard {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 20px;

  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-radius: 18px;

  padding: 22px 26px;
  cursor: pointer;

  transition: all 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.sop-subcard:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 0 25px rgba(255, 255, 255, 0.12),
    inset 0 0 40px rgba(255, 255, 255, 0.06),
    0 12px 28px rgba(0, 0, 0, 0.55);
}

.sop-subcard-content {
  flex: 1;
}

.sop-subcard-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.sop-subcard-desc {
  font-size: 0.9rem;
  color: #bbb;
}

.open-icon {
  font-size: 1.1rem;
  color: #ccc;
  opacity: 0.7;
  transition: 0.3s ease;
}

.sop-subcard:hover .open-icon {
  opacity: 1;
}


/* -------------------------------------- */
/* LIGHTBOX OVERLAY */
/* -------------------------------------- */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  display: none;
  justify-content: center;
  align-items: flex-start;

  padding: 40px;
  overflow-y: auto;
  z-index: 9999;

  opacity: 0;
  transition: opacity 0.4s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  width: 100%;
  max-width: 900px;
  background: #000;
  padding: 40px;
  border-radius: 20px;
  color: #fff;
}

.lightbox-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #aaa;
  text-decoration: none;
  font-size: 0.95rem;
  margin-bottom: 25px;
  transition: 0.3s ease;
}

.lightbox-back:hover {
  color: #fff;
}

#lightbox-body h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}

#lightbox-body p,
#lightbox-body ul {
  font-size: 1rem;
  color: #ddd;
  line-height: 1.6;
}

#lightbox-body ul {
  margin-top: 10px;
  padding-left: 20px;
}

#lightbox-body li {
  margin-bottom: 8px;
}

.credit-link {
  color: #ddd;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.credit-link:hover {
  color: #bbb;
}