/* =========================
   STUDENT PALACE COMPONENTS
   ========================= */

/* Header */
.site-header{
  background:var(--primary);
  color:var(--white);
  position:sticky;
  top:0;
  z-index:999;
  box-shadow:0 2px 12px rgba(0,0,0,.08);
}

/* Page Hero Small */
.page-hero{
  background:linear-gradient(135deg,var(--primary),var(--secondary));
  color:var(--white);
  padding:48px 0;
}

.page-hero h1{
  font-size:34px;
  margin-bottom:10px;
}

.page-hero p{
  max-width:760px;
  opacity:.95;
}

/* Cards */
.card-list{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:18px;
}

.info-card{
  background:var(--white);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:20px;
  box-shadow:var(--shadow);
  transition:.2s ease;
}

.info-card:hover{
  transform:translateY(-3px);
  box-shadow:var(--shadow-hover);
}

.info-card .icon{
  font-size:32px;
  margin-bottom:10px;
}

.info-card h3{
  font-size:17px;
  color:var(--primary);
  margin-bottom:8px;
}

.info-card p{
  font-size:14px;
  color:var(--muted);
  margin-bottom:12px;
}

.info-card a{
  color:var(--secondary);
  font-size:14px;
  font-weight:700;
}

/* University Card */
.university-card{
  background:var(--white);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:20px;
  box-shadow:var(--shadow);
}

.university-card .country{
  font-size:12px;
  font-weight:700;
  color:var(--secondary);
  margin-bottom:6px;
}

.university-card h3{
  font-size:18px;
  margin-bottom:8px;
}

.university-card p{
  font-size:14px;
  color:var(--muted);
  margin-bottom:12px;
}

/* Breadcrumb Better */
.breadcrumb{
  background:#eef4ff;
  border:1px solid var(--border);
  padding:10px 14px;
  border-radius:8px;
}

/* Sidebar Link List */
.link-list a{
  display:block;
  padding:9px 0;
  border-bottom:1px solid var(--border);
  color:var(--secondary);
  font-weight:700;
  font-size:14px;
}

.link-list a:last-child{
  border-bottom:0;
}

/* Search Panel */
.search-panel{
  background:var(--white);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:20px;
  box-shadow:var(--shadow);
}

.search-panel input,
.search-panel select{
  width:100%;
  padding:12px;
  border:1px solid var(--border);
  border-radius:6px;
  margin-bottom:12px;
  font-size:14px;
}

.search-panel button{
  width:100%;
  border:0;
  background:var(--primary);
  color:var(--white);
  padding:12px;
  border-radius:6px;
  font-weight:700;
  cursor:pointer;
}

/* Tags */
.tag-row{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:12px;
}

.tag{
  display:inline-block;
  background:#eef4ff;
  border:1px solid var(--border);
  color:var(--primary);
  border-radius:999px;
  padding:5px 11px;
  font-size:12px;
  font-weight:700;
}

/* Article Meta */
.article-meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  font-size:13px;
  color:var(--muted);
  margin-bottom:18px;
}

/* Alert Box */
.alert{
  background:#fff8d8;
  border:1px solid #f1dc77;
  border-radius:8px;
  padding:14px 16px;
  color:#6b5700;
  font-size:14px;
  margin-bottom:18px;
}

/* Pagination */
.pagination{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:24px;
}

.pagination a{
  background:var(--white);
  border:1px solid var(--border);
  border-radius:6px;
  padding:8px 12px;
  color:var(--primary);
  font-weight:700;
  font-size:13px;
}

.pagination a.active{
  background:var(--primary);
  color:var(--white);
}

/* Footer Enhanced */
.footer-brand{
  font-size:20px;
  font-weight:800;
  margin-bottom:8px;
}

.footer-brand span{
  color:var(--accent);
}

.footer-desc{
  font-size:13px;
  opacity:.85;
  max-width:260px;
}

/* Responsive */
@media(max-width:768px){
  .page-hero h1{
    font-size:27px;
  }

  .card-list{
    grid-template-columns:1fr;
  }
}