.student-layout {
  min-height: calc(100vh - 78px);
  background: var(--bg-body);
  padding: 32px 0 60px 0;
}

/* Student Portal Official Brand Banner */
.student-hero-banner {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(226, 232, 240, 0.8);
  background: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
}

.student-banner-image {
  width: 100%;
  height: auto;
  max-height: 240px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.student-welcome-banner {
  background: linear-gradient(135deg, var(--brand-navy) 0%, #123e63 100%);
  border-radius: var(--radius-lg);
  padding: 32px 40px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.student-welcome-banner::after {
  content: '';
  position: absolute;
  right: -50px;
  bottom: -50px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(0, 180, 216, 0.2) 0%, transparent 70%);
}

.student-welcome-info h2 {
  color: #ffffff;
  font-size: 1.85rem;
  margin-bottom: 8px;
}

.student-welcome-info p {
  color: #cbd5e1;
  font-size: 0.95rem;
}

.student-badges {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

/* Tab Navigation for Student Sections */
.portal-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 2px solid var(--border-light);
  margin-bottom: 30px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.portal-tab-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--text-secondary);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  position: relative;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.portal-tab-item:hover {
  color: var(--brand-navy);
}

.portal-tab-item.active {
  color: var(--brand-green);
  border-bottom: 3px solid var(--brand-green);
}

/* Assignments Grid */
.assignments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.assignment-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-light);
  padding: 24px;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.3s ease;
}

.assignment-card:hover {
  transform: translateY(-5px) scale(1.01);
  border-color: var(--brand-cyan);
  box-shadow: 0 16px 32px rgba(11, 37, 58, 0.1);
}

.assignment-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.assignment-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 8px;
}

.assignment-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.assignment-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.assignment-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 20px;
  flex-grow: 1;
}

.assignment-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

/* PDF Security Upload Dropzone */
.secure-dropzone {
  border: 2px dashed #00b4d8;
  background: #f0fdfa;
  border-radius: var(--radius-md);
  padding: 36px 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-normal);
  position: relative;
}

.secure-dropzone:hover, .secure-dropzone.dragover {
  background: #e6fffa;
  border-color: var(--brand-green);
  transform: scale(1.01);
}

.dropzone-icon {
  font-size: 2.5rem;
  color: var(--brand-cyan);
  margin-bottom: 12px;
}

.dropzone-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 4px;
}

.dropzone-hint {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.security-badge-shield {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #99f6e4;
  color: #0f766e;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

/* Past Paper Searcher Interface */
.searcher-filter-bar {
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  box-shadow: var(--shadow-xs);
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.filter-item-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
  letter-spacing: 0.05em;
}

.filter-item-group select, .filter-item-group input {
  width: 100%;
  padding: 9px 12px;
  font-size: 0.88rem;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--text-primary);
}

.past-papers-table-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}

/* Zoom Attendance Check-in Box */
.attendance-checkin-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border-light);
  padding: 36px;
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.pin-input-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 24px 0;
}

.pin-digit-input {
  width: 48px;
  height: 60px;
  font-size: 1.8rem;
  font-weight: 800;
  text-align: center;
  border: 2px solid var(--border-light);
  border-radius: 8px;
  outline: none;
  font-family: monospace;
  transition: var(--transition-fast);
}

.pin-digit-input:focus {
  border-color: var(--brand-green);
  box-shadow: 0 0 0 3px var(--brand-green-glow);
}

/* Responsive Student Hub for Mobile Viewports */
@media (max-width: 768px) {
  .student-layout {
    padding: 16px 0 40px 0;
  }

  .student-hero-banner {
    margin-bottom: 14px;
  }

  .student-welcome-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 16px;
    gap: 16px;
    margin-bottom: 20px;
  }

  .student-welcome-info h2 {
    font-size: 1.4rem;
  }

  .student-welcome-info p {
    font-size: 0.88rem;
  }

  .student-badges {
    flex-wrap: wrap;
    gap: 8px;
  }

  .student-welcome-banner .btn {
    width: 100%;
    justify-content: center;
  }

  .portal-tabs {
    gap: 6px;
    margin-bottom: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    padding-bottom: 8px;
  }

  .portal-tab-item {
    padding: 9px 14px;
    font-size: 0.84rem;
    flex-shrink: 0;
  }

  .assignments-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .assignment-card {
    padding: 18px 16px;
  }

  .searcher-filter-bar {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 12px;
  }

  .secure-dropzone {
    padding: 24px 14px;
  }

  .attendance-checkin-card {
    padding: 24px 16px;
  }

  .pin-digit-input {
    width: 40px;
    height: 52px;
    font-size: 1.4rem;
  }
}

