/* ===== Page Styling ===== */
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  margin: 20px;
  background: #f5f7fb;
}

/* ===== Study Material Card ===== */
.fullm {
  display: inline-block;
  width: 100%;
  max-width: 280px;
  padding: 12px 16px;
  margin-bottom: 20px;
  background: #2c54ab;
  color: white;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

/* Button */
.fullm button {
  margin-top: 8px;
  padding: 6px 12px;
  border: none;
  background: #1E3A8A;
  color: white;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

.fullm button:hover {
  background: #162F6D;
}

/* ===== Grid Layout ===== */
.table-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* ===== Chapter Card ===== */
.table-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  transition: 0.2s;
}

.table-row:hover {
  transform: translateY(-4px);
}

/* Chapter Number */
.cell-no {
  width: 48px;
  height: 48px;
  background: #1E3A8A;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* Chapter Name */
.cell-name {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
}

/* View Button */
.cell-view a {
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid #1E3A8A;
  color: #1E3A8A;
  font-weight: 600;
}

.cell-view a:hover {
  background: #1E3A8A;
  color: white;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .table-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .table-grid {
    grid-template-columns: 1fr;
  }

  .table-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===== Dropdown Styling (Chapter 14 Units) ===== */
.cell-view select {
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid #1E3A8A;
  color: #1E3A8A;
  font-weight: 600;
  background: white;
  cursor: pointer;
  outline: none;
  transition: 0.3s ease;
}

/* Hover + Focus */
.cell-view select:hover,
.cell-view select:focus {
  background: #1E3A8A;
  color: white;
}

/* Dropdown arrow styling */
.cell-view select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%231E3A8A' height='20' viewBox='0 0 20 20' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M5 7l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 18px;
  padding-right: 35px;
}

/* Option styling */
.cell-view select option {
  background: white;
  color: #1E3A8A;
  font-weight: 600;
}