/* ===== BODY ===== */
body{
margin:0;
font-family:"Segoe UI",sans-serif;
  background-color: #f3f4f6;

min-height:100vh;
}

/* ===== CONTAINER ===== */
.container{
max-width:1200px;
margin:auto;
padding:40px 20px;
}

/* ===== TOP BAR ===== */
.top-bar{
display:flex;
justify-content:space-between;
align-items:center;
flex-wrap:wrap;
gap:10px;
}

/* ===== TITLE ===== */
.section-title{
font-size:30px;
font-weight:800;
letter-spacing:1px;
background:linear-gradient(135deg,#2563eb,#9333ea,#ec4899);
-webkit-background-clip:text;
-webkit-text-fill-color:transparent;
text-shadow:0 3px 10px rgba(0,0,0,0.15);
}

/* ===== BADGE ===== */
.badge{
background:#2563eb;
color:white;
padding:8px 14px;
border-radius:20px;
font-size:13px;
font-weight:600;
}

/* ===== GRID ===== */
.paper-grid{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:22px;
margin-top:25px;
}

/* ===== CARD ===== */
.paper-card{
background:white;
border-radius:14px;
  max-height: 300px;
padding:20px;
box-shadow:0 10px 30px rgba(0,0,0,0.08);
transition:all .35s ease;
position:relative;
overflow:hidden;
cursor:pointer;
}

.paper-card:hover{
transform:translateY(-7px);
box-shadow:0 18px 45px rgba(0,0,0,0.15);
}

/* subtle glowing border */
.paper-card::before{
content:"";
position:absolute;
inset:-2px;
border-radius:16px;
background:linear-gradient(45deg,#3b82f6,#9333ea,#3b82f6);
opacity:0;
transition:.4s;
z-index:-1;
}

.paper-card:hover::before{
opacity:0.3;
}

/* ===== CARD HEADER ===== */
.paper-header{
display:flex;
justify-content:space-between;
align-items:center;
margin-bottom:10px;
}

.paper-header h3{
font-size:18px;
font-weight: 800;
color:#111827;
margin:0;
}

/* ===== TYPE BADGE ===== */
.paper-type{
background:black;
color:#fff;
white-space: nowrap;
font-size:13px;
padding:8px 12px;
border-radius:20px;
font-weight:800;
}

/* ===== INFO TEXT ===== */
.paper-info p{
font-size:13px;
color:#6b7280;
margin:4px 0;
}

/* ===== ACTION BUTTONS ===== */
.paper-actions{
display:flex;
gap:10px;
margin-top:15px;
flex-wrap:wrap;
}

/* view button */
.view-btn{
background:#3b82f6;
color:white;
border:none;
padding:7px 14px;
border-radius:6px;
cursor:pointer;
font-size:13px;
transition:.3s;
}

.view-btn:hover{
background:#2563eb;
}

/* download button */
.download-btn{
background:#10b981;
color:white;
padding:7px 14px;
border-radius:6px;
text-decoration:none;
font-size:13px;
transition:.3s;
}

.download-btn:hover{
background:#059669;
}

/* ===== VIEW ALL BUTTON ===== */
.view-all-container{
text-align:center;
margin-top:30px;
}

.view-all-btn{
background:#2563eb;
color:white;
border:none;
padding:12px 22px;
font-size:14px;
border-radius:8px;
cursor:pointer;
transition:.3s;
}

.view-all-btn:hover{
background:#1d4ed8;
transform:translateY(-2px);
}

/* ===== EMPTY MESSAGE ===== */
.paper-grid p{
font-size:16px;
display: flex;
justify-content: space-between;
color:#6b7280;
text-align:start;
grid-column:1/-1;
}

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

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width:768px){

.section-title{
font-size:24px;
text-align:center;
width:100%;
}

.top-bar{
justify-content:center;
}

.container{
padding:25px 15px;
}

.paper-card{
padding:16px;
}

/* Mobile → 1 box */
.paper-grid{
grid-template-columns:1fr;
}

}


.back {
  display: inline-block;
}

/* Style the icon like a button */
.back i {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  padding: 10px 14px;
  border-radius: 8px;

  background: #f1f5f9;
  color: #333;
  font-size: 14px;
  font-weight: 600;

  cursor: pointer;
  transition: all 0.3s ease;
}

/* Hover effect */
.back i:hover {
  background: #e2e8f0;
  transform: translateY(-1px);
}

/* Click effect */
.back i:active {
  transform: scale(0.96);
}

/* Mobile friendly */
@media (max-width: 600px) {
  .back i {
    width: 100%;
    justify-content: center;
    font-size: 16px;
    padding: 12px;
  }
}


/* loader */

/* ===== LOADER ===== */
#loader{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  background: linear-gradient(135deg,#0f172a,#1e293b);
  z-index:9999;
  flex-direction:column;
}

/* spinner */
.loader-circle{
  width:50px;
  height:50px;
  border:5px solid #e5e7eb;
  border-top:5px solid #2563eb;
  border-radius:50%;
  animation:spin 1s linear infinite;
}

@keyframes spin{
  0%{transform:rotate(0deg);}
  100%{transform:rotate(360deg);}
}

/* loading text */
.loader-text{
  color:white;
  font-weight:600;
}