/*
 * home.css
 * Styles for the landing page (templates/main/home.html): hero call-to-action,
 * section headings, and the featured-university / latest-course / scholarship cards.
 * Loaded via the extra_css block in addition to the global style.css.
 */

/* Hero call-to-action: gradient pill button with flag icon and hover lift */
.home-hero-wrap {
  text-align: center;
  margin-top: 18px;
  margin-bottom: 44px;
}

.home-hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 36px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #6d5dfc 0%, #7c3aed 45%, #ec4899 100%);
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(109, 93, 252, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.home-hero-cta:hover {
  color: #ffffff;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 20px 42px rgba(109, 93, 252, 0.45);
  filter: brightness(1.05);
}

.home-hero-cta:active {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 12px 28px rgba(109, 93, 252, 0.32);
}

.home-hero-flag {
  width: 28px;
  height: 20px;
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.home-hero-cta:hover .home-hero-flag {
  transform: scale(1.08);
}

.home-hero-cta i {
  font-size: 1.2rem;
  transition: transform 0.25s ease;
}

.home-hero-cta:hover i {
  transform: translateX(4px);
}

/* Section headings ("Featured Universities", "Latest Courses", etc.) */
.home-section-title {
  color: #6d5dfc;
  font-weight: 800;
  margin-bottom: 24px;
}

/* University cards: rounded card with logo area (image or initial placeholder) */
.home-card {
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(55, 35, 120, 0.10);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 38px rgba(55, 35, 120, 0.16);
}

.home-logo-wrap {
  height: 190px;
  background: #f7f6ff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 18px;
}

.home-logo-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f3f0ff, #ffffff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6d5dfc;
  font-weight: 800;
  font-size: 42px;
}

.home-card-title {
  color: #6d5dfc;
  font-weight: 800;
  min-height: 56px;
}

/* QS ranking badge and fallback text, shared across home cards */
.ranking-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #7c3aed, #ec4899);
  color: #ffffff;
  font-weight: 800;
  font-size: 13px;
}

.ranking-unavailable {
  color: #6b7280;
  font-weight: 600;
}

/* Card meta text and "View Details" button */
.home-meta {
  color: #4b5563;
  font-size: 14px;
  margin-bottom: 8px;
}

.home-view-btn {
  color: #6d5dfc;
  border-color: #6d5dfc;
  font-weight: 700;
  border-radius: 999px;
  padding: 8px 16px;
}

.home-view-btn:hover {
  background: linear-gradient(90deg, #6d28d9, #ff6b8a);
  border-color: transparent;
  color: #ffffff;
}

/* Simple cards (courses and scholarships, no logo area) */
.home-simple-card {
  border: 0;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(55, 35, 120, 0.10);
}

.home-simple-title {
  color: #6d5dfc;
  font-weight: 800;
}
