/* StudyInChina Detail Widget — ISL Education */

/* ── Hero Header (SCG-style) ── */
.sic-hero {
  position: relative; min-height: 320px;
  background: center/cover no-repeat; display: flex; align-items: flex-end;
}
.sic-hero-img  { /* has cover image */ }
.sic-hero-grad { background: linear-gradient(135deg, #c41230 0%, #5c0a1a 100%); }

.sic-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.7) 0%, rgba(0,0,0,.15) 50%, rgba(0,0,0,.05) 100%);
}

.sic-hero-content {
  position: relative; z-index: 1;
  max-width: 1100px; width: 100%; margin: 0 auto; padding: 30px 20px 24px;
  display: flex; align-items: flex-end; gap: 18px;
}
.sic-logo {
  width: 80px; height: 80px; object-fit: contain; border-radius: 10px;
  background: white; padding: 6px; box-shadow: 0 4px 16px rgba(0,0,0,.25);
  flex-shrink: 0;
}
.sic-hero-text { flex: 1; }
.sic-school-name {
  font-size: 24px; font-weight: 800; color: #fff; margin: 0 0 4px;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.sic-school-en {
  font-size: 13px; color: rgba(255,255,255,.85); margin-bottom: 6px;
  text-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.sic-school-meta {
  font-size: 13px; color: rgba(255,255,255,.9);
  text-shadow: 0 1px 4px rgba(0,0,0,.3);
}

.sic-header-actions {
  max-width: 1100px; margin: 16px auto 0; padding: 0 16px;
  display: flex; justify-content: flex-end;
}
.sic-btn-consult {
  display: inline-block; padding: 12px 24px; background: #c41230; color: white;
  border-radius: 8px; font-weight: 700; text-decoration: none; font-size: 14px;
  white-space: nowrap; transition: background .2s;
}
.sic-btn-consult:hover { background: #a00f28; color: white; text-decoration: none; }

/* ── Tabs ── */
.sic-tabs {
  max-width: 1100px; margin: 0 auto; padding: 0 16px;
  display: flex; border-bottom: 2px solid #eee; gap: 2px; overflow-x: auto;
}
.sic-tab {
  padding: 12px 20px; border: none; background: none; cursor: pointer;
  font-size: 14px; font-weight: 600; color: #666; border-bottom: 2px solid transparent;
  margin-bottom: -2px; white-space: nowrap; transition: all .2s;
}
.sic-tab:hover { color: #c41230; }
.sic-tab.active { color: #c41230; border-bottom-color: #c41230; }

/* ── Panels ── */
.sic-panel {
  max-width: 1100px; margin: 24px auto 40px; padding: 0 16px;
}
.sic-section { margin-bottom: 28px; }
.sic-section h4 { font-size: 15px; font-weight: 700; color: #1a1a1a; margin: 0 0 12px; }

/* ── Overview ── */
.sic-introduce { font-size: 14px; color: #333; line-height: 1.75; }
.sic-introduce h1, .sic-introduce h2, .sic-introduce h3 {
  font-size: 16px; color: #1a1a1a; margin: 16px 0 8px;
}
.sic-introduce img { max-width: 100%; height: auto; border-radius: 8px; margin: 8px 0; }

.sic-attrs {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px;
}
.sic-attr {
  background: #f9f9f9; border-radius: 8px; padding: 12px 14px;
  display: flex; flex-direction: column; gap: 4px;
}
.sic-attr-label { font-size: 11px; color: #888; }
.sic-attr-val   { font-size: 15px; font-weight: 700; color: #1a1a1a; }

.sic-projects { display: flex; gap: 8px; flex-wrap: wrap; }
.sic-proj-badge {
  padding: 5px 14px; border-radius: 20px; font-size: 12px; font-weight: 700;
  background: #fff3cd; color: #856404; cursor: default;
}

.sic-contact { font-size: 13px; color: #444; line-height: 2; }
.sic-contact a { color: #c41230; }
.sic-contact a:hover { text-decoration: underline; }

/* ── Scholarship ── */
.sic-sch-list { display: flex; flex-direction: column; gap: 12px; }
.sic-sch-item {
  background: white; border: 1px solid #eee; border-radius: 8px; padding: 14px 16px;
  border-left: 4px solid #c41230;
}
.sic-sch-name   { font-size: 14px; font-weight: 700; color: #1a1a1a; margin-bottom: 4px; }
.sic-sch-type   { font-size: 12px; color: #c41230; font-weight: 600; margin-bottom: 4px; }
.sic-sch-trains { font-size: 12px; color: #666; }

/* ── Major ── */
.sic-major-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px;
}
.sic-major-item {
  background: #f0f4ff; color: #2c4a8f; border-radius: 6px; padding: 8px 12px;
  font-size: 13px; display: flex; justify-content: space-between; align-items: center;
}
.sic-major-rank { font-size: 10px; color: #888; }
.sic-more-note  { font-size: 12px; color: #999; text-align: center; margin-top: 12px; }

/* ── Media ── */
.sic-photo-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px;
}
.sic-photo-item { border-radius: 8px; overflow: hidden; aspect-ratio: 4/3; background: #f0f0f0; }
.sic-photo-item img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── Map ── */
.sic-map-wrap   { border-radius: 10px; overflow: hidden; }

/* ── States ── */
.sic-loading { color: #999; font-size: 14px; text-align: center; padding: 40px; }
.sic-muted   { color: #aaa; font-size: 13px; text-align: center; padding: 30px 0; }

/* ── Back link ── */
.sic-back { max-width: 1100px; margin: 0 auto; padding: 16px; }
.sic-back a { color: #c41230; font-size: 14px; text-decoration: none; }
.sic-back a:hover { text-decoration: underline; }

/* ── Responsive ── */
@media (max-width: 640px) {
  .sic-hero          { min-height: 220px; }
  .sic-hero-content  { flex-direction: row; gap: 12px; padding: 20px 16px; }
  .sic-logo          { width: 60px; height: 60px; }
  .sic-school-name   { font-size: 18px; }
  .sic-header-actions { justify-content: center; }
  .sic-btn-consult   { width: 100%; text-align: center; }
  .sic-tab           { padding: 10px 14px; font-size: 13px; }
  .sic-attrs         { grid-template-columns: 1fr 1fr; }
  .sic-major-grid    { grid-template-columns: 1fr 1fr; }
}
