/* ============================================
   PAST PAPERS PAGE STYLES
   ============================================ */

/* === Papers Hero Section === */
.papers-hero {
  background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
  color: white;
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.papers-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v6h6V4z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.3;
}

.papers-hero .container {
  position: relative;
  z-index: 1;
}

/* Breadcrumb Styling - WHITE TEXT, NO UNDERLINE */
.papers-hero .breadcrumb-custom {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 0.75rem 1.25rem;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.papers-hero .breadcrumb-custom a {
  color: white !important;
  text-decoration: none !important;
  font-size: 0.95rem;
  font-weight: 600;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.papers-hero .breadcrumb-custom a:hover {
  opacity: 1;
  text-decoration: none !important;
}

.papers-hero .breadcrumb-custom span {
  color: white;
  opacity: 0.7;
  font-size: 0.95rem;
  font-weight: 500;
}

/* === Paper Showcase Card === */
.paper-showcase-card {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: rotate(-2deg);
  transition: transform 0.3s ease;
}

.paper-showcase-card:hover {
  transform: rotate(0deg) scale(1.02);
}

.paper-icon-large {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: #10b981;
  margin: 0 auto 1.5rem;
}

.paper-details {
  background: #f9fafb;
  padding: 1.5rem;
  border-radius: 12px;
  margin-top: 1.5rem;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-label {
  font-weight: 600;
  color: #6b7280;
}

.detail-value {
  font-weight: 700;
  color: #1f2937;
}

/* === Exam Board Strip === */
.exam-board-strip {
  background: white;
  padding: 2rem 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.board-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.board-logo {
  width: 100px;
  height: 100px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.3rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.board-logo.aqa {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  color: #dc2626;
}

.board-logo.edexcel {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  color: #2563eb;
}

.board-logo.ocr {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #d97706;
}

.board-logo.wjec {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  color: #059669;
}

.board-logo:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* === Paper Finder Section === */
.paper-finder-section {
  padding: 80px 0;
  background: #f9fafb;
}

.finder-card {
  background: white;
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.finder-form .form-select {
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.finder-form .form-select:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.finder-form .form-label {
  color: #1f2937;
  margin-bottom: 0.75rem;
}

/* === Papers Library Section === */
.papers-library-section {
  padding: 80px 0;
  background: white;
}

.board-section {
  margin-bottom: 5rem;
}

.board-section-header {
  background: #f9fafb;
  padding: 2rem;
  border-radius: 16px;
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 2px solid #e5e7eb;
}

.board-icon {
  width: 70px;
  height: 70px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.3rem;
}

.board-icon.aqa {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  color: #dc2626;
}

.board-icon.edexcel {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  color: #2563eb;
}

.paper-count-badge {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
}

/* === Paper Card === */
.paper-card {
  background: white;
  border-radius: 16px;
  border: 2px solid #e5e7eb;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.paper-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(16, 185, 129, 0.2);
  border-color: #10b981;
}

.paper-card.featured {
  border-color: #fbbf24;
  position: relative;
}

.featured-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: white;
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
  z-index: 1;
  box-shadow: 0 4px 10px rgba(251, 191, 36, 0.4);
}

.paper-card-header {
  padding: 1.5rem;
  background: #f9fafb;
}

.paper-icon {
  font-size: 2.5rem;
  color: #10b981;
}

.paper-card-body {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.paper-title {
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1f2937;
}

.paper-info {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #6b7280;
  font-weight: 600;
  font-size: 0.95rem;
}

.info-item i {
  color: #10b981;
}

.paper-downloads {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.download-btn {
  background: white;
  border: 2px solid #e5e7eb;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
  cursor: pointer;
  color: #4b5563;
}

.download-btn i {
  font-size: 1.3rem;
}

.download-btn.primary {
  border-color: #10b981;
  color: #10b981;
}

.download-btn.primary:hover {
  background: #10b981;
  color: white;
  transform: translateX(5px);
}

.download-btn.secondary {
  border-color: #3b82f6;
  color: #3b82f6;
}

.download-btn.secondary:hover {
  background: #3b82f6;
  color: white;
  transform: translateX(5px);
}

.paper-meta {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
  flex-wrap: wrap;
}

/* === How to Use Section === */
.how-to-use-section {
  padding: 80px 0;
  background: #f9fafb;
}

.strategy-card {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  border: 2px solid #e5e7eb;
  height: 100%;
  transition: all 0.3s ease;
  position: relative;
  text-align: center;
}

.strategy-card:hover {
  transform: translateY(-5px);
  border-color: #10b981;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.15);
}

.strategy-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

.strategy-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #10b981;
  margin: 1.5rem auto 1.5rem;
}

.strategy-card h5 {
  font-weight: 700;
  margin-bottom: 1rem;
}

.strategy-card p {
  color: #6b7280;
  margin: 0;
}

/* Pro Tip Card */
.pro-tip-card {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

.pro-tip-icon {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto;
}

/* === Grade Boundaries Section === */
.grade-boundaries-section {
  padding: 80px 0;
  background: white;
}

.boundaries-card {
  background: #f9fafb;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid #e5e7eb;
}

.boundaries-tabs {
  display: flex;
  background: white;
  border-bottom: 2px solid #e5e7eb;
}

.boundaries-tab {
  flex: 1;
  padding: 1.5rem;
  background: transparent;
  border: none;
  font-weight: 700;
  font-size: 1.1rem;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
}

.boundaries-tab:hover {
  color: #10b981;
}

.boundaries-tab.active {
  color: #10b981;
  border-bottom-color: #10b981;
}

.boundaries-content {
  padding: 3rem;
}

.boundaries-table {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.boundary-row {
  display: grid;
  grid-template-columns: 60px 100px 1fr 80px;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: white;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.boundary-row:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.grade {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.5rem;
  color: white;
}

.grade-9 { background: #7c3aed; }
.grade-8 { background: #8b5cf6; }
.grade-7 { background: #a78bfa; }
.grade-6 { background: #10b981; }
.grade-5 { background: #10b981; }
.grade-4 { background: #f59e0b; }
.grade-3 { background: #f59e0b; }
.grade-2 { background: #f59e0b; }
.grade-1 { background: #f59e0b; }

.marks {
  font-weight: 700;
  color: #1f2937;
  font-size: 1.1rem;
}

.progress-bar-boundary {
  height: 12px;
  background: #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #059669);
  border-radius: 10px;
  transition: width 1s ease;
}

.percentage {
  font-weight: 700;
  color: #6b7280;
}

/* === CTA Section === */
.papers-cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #10b981 0%, #065f46 100%);
  position: relative;
  overflow: hidden;
}

.papers-cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v6h6V4z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.3;
}

.cta-card {
  position: relative;
  z-index: 1;
  color: white;
}

/* === Responsive === */
@media (max-width: 991px) {
  .papers-hero {
    padding: 80px 0 60px;
  }
  
  .paper-showcase-card {
    transform: rotate(0);
    margin-top: 3rem;
  }
  
  .board-section-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .boundary-row {
    grid-template-columns: 50px 90px 1fr 70px;
    gap: 0.75rem;
  }
}

@media (max-width: 767px) {
  .finder-card {
    padding: 2rem 1.5rem;
  }
  
  .board-logos {
    gap: 1rem;
  }
  
  .board-logo {
    width: 80px;
    height: 80px;
    font-size: 1.1rem;
  }
  
  .paper-downloads {
    gap: 0.5rem;
  }
  
  .boundaries-tabs {
    flex-direction: column;
  }
  
  .boundaries-content {
    padding: 1.5rem;
  }
  
  .boundary-row {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 0.5rem;
  }
  
  .grade {
    margin: 0 auto;
  }
  
  .papers-hero .breadcrumb-custom {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }
}