/* ============================================
   HOMEPAGE HERO SECTION
   Premium Gradient + Mascot Layout
   ============================================ */

/* Full-width hero wrapper */
.home-hero {
  width: 100%;
  padding: 4rem 1.5rem 5rem;
  background: linear-gradient(
    135deg,
    #1d4ed8 0%,
    #4338ca 40%,
    #fb923c 100%
  );
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Mascot image */
.home-hero .hero-mascot {
  max-width: 220px;
  margin: 0 auto 1.5rem;
  display: block;
}

/* Logo text */
.home-hero .hero-title {
  font-size: 2.6rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 0.5rem;
}

/* Tagline */
.home-hero .hero-tagline {
  font-size: 1.1rem;
  opacity: 0.95;
  margin-bottom: 1.5rem;
}

/* Description paragraph */
.home-hero .hero-description {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  font-size: 1.15rem;
  line-height: 1.65;
  opacity: 0.95;
}

/* ============================================
   CTA CARDS (Calculator Hub / Error Code Hub)
   ============================================ */

.home-cta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.home-cta-card {
  background: white;
  color: #1a1a1a;
  padding: 1.75rem 1.5rem;
  border-radius: 14px;
  text-decoration: none;
  display: block;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-cta-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}

.home-cta-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.home-cta-card p {
  font-size: 1rem;
  opacity: 0.85;
  line-height: 1.5;
}

/* Dark mode CTA cards */
html.dark .home-cta-card {
  background: #1f2937;
  color: #e2e8f0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

html.dark .home-cta-card:hover {
  box-shadow: 0 10px 24px rgba(0,0,0,0.55);
}

/* ============================================
   SECTION HEADERS (Latest Calculators / Codes)
   ============================================ */

.home-section {
  max-width: 1100px;
  margin: 3.5rem auto 2rem;
  padding: 0 1.25rem;
}

.home-section h2 {
  font-size: 1.9rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  color: var(--huskyText-light);
}

html.dark .home-section h2 {
  color: var(--huskyText-dark);
}

/* ============================================
   RESPONSIVE TWEAKS
   ============================================ */

@media (max-width: 600px) {
  .home-hero {
    padding: 3rem 1rem 4rem;
  }

  .home-hero .hero-title {
    font-size: 2.2rem;
  }

  .home-hero .hero-description {
    font-size: 1.05rem;
  }
}