/*
 * 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-actions: equal dual gradient pills (apply + career interest) */
.home-hero-wrap {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
  max-width: 920px;
  margin: 18px auto 44px;
}

.home-hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 64px;
  padding: 16px 28px;
  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;
  text-align: center;
  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;
  box-sizing: border-box;
}

.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-cta-label {
  flex: 1 1 auto;
  line-height: 1.25;
}

.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-leading-icon {
  font-size: 1.45rem;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

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

.home-hero-cta > .bi-arrow-right-circle-fill {
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.home-hero-cta:hover > .bi-arrow-right-circle-fill {
  transform: translateX(4px);
}

@media (max-width: 767.98px) {
  .home-hero-wrap {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-left: 0;
    margin-right: 0;
    max-width: none;
  }

  .home-hero-cta {
    width: 100%;
    font-size: 1.05rem;
    padding: 16px 22px;
  }
}

/* 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;
}
