/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 2.5rem 1rem;
  /* Mild semi-transparent overlay — keeps background photo clearly visible */
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.25),
      /* Lighter overlay for better visibility */
      rgba(0, 0, 0, 0.25)),
    url('../images/CalcTeacher-Hero-Image.webp');
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 380px;
}

/* Subtle bottom vignette for premium depth */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.10));
  pointer-events: none;
}

[data-theme="dark"] .hero {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.45),
      rgba(0, 0, 0, 0.45)),
    url('../images/CalcTeacher-Hero-Image.webp');
}

/* ── Hero Glassmorphism Card ──────────────────────────────── */
.hero-content-card {
  position: relative;
  z-index: 1;
  background: var(--surface);
  /* Solid opaque surface */
  padding: 2.5rem 1.75rem;
  /* Reduced horizontal padding */
  border-radius: 28px;
  box-shadow:
    0 12px 48px rgba(0, 0, 0, 0.22),
    0 4px 12px rgba(0, 0, 0, 0.12);
  max-width: 680px;
  /* Reduced from 780px for a more focused look */
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.6);
  margin: 0 auto;
  transition: box-shadow 0.3s ease;
}

.hero-content-card:hover {
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.28),
    0 4px 12px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

[data-theme="dark"] .hero-content-card {
  background: var(--surface);
  /* Solid opaque surface */
  border-color: var(--border);
  box-shadow:
    0 12px 48px rgba(0, 0, 0, 0.5),
    0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ── Hero Search Box Fix ─────────────────────────────────── */
.hero-search-wrapper {
  max-width: 650px;
  width: 100%;
  margin: 0 auto;
}

.hero-search-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface);
  padding: 0.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: border-color var(--transition);
}

.hero-search-form:focus-within {
  border-color: var(--accent);
}

.hero-search-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 0.75rem 1.25rem;
  font-size: 1.1rem;
  color: var(--text);
  outline: none;
  font-family: 'Inter', sans-serif;
}

.hero-search-input::placeholder {
  color: var(--color-secondary);
  opacity: 0.3;
  /* Branded hint at 30% */
}

.hero-search-btn {
  padding: 0.75rem 1.75rem;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: none !important;
}

@media (max-width: 580px) {
  .hero-search-form {
    flex-direction: column;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    gap: 0.75rem;
  }

  .hero-search-input {
    width: 100%;
    min-width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.85rem 1.25rem;
    box-shadow: var(--shadow-sm);
  }

  .hero-search-btn {
    width: 100%;
    padding: 0.85rem;
    border-radius: 12px;
    box-shadow: var(--shadow) !important;
  }
}

/* ── Hero Mobile Responsiveness ───────────────────────────── */
@media (max-width: 768px) {
  .hero {
    padding: 4.5rem 1rem;
    min-height: 460px;
    /* Shift to focal point (teachers' faces) instead of dead center */
    background-position: 60% 20%;
  }

  .hero-content-card {
    padding: 2rem 1.25rem;
    border-radius: 20px;
    /* Slightly stronger on mobile where backgrounds can clash more */
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
  }
}

@media (max-width: 480px) {
  .hero {
    /* LCP: plain solid colour — zero image decode, zero gradient paint pass */
    background-image: none;
    background-color: #1753c1;
    min-height: 400px;
  }

  .hero::after {
    display: none;
  }
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 4rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(244, 115, 25, 0.1);
  border: 1px solid rgba(244, 115, 25, 0.25);
  padding: .4rem 1rem;
  border-radius: 99px;
  font-size: .8rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

[data-theme="dark"] .hero-badge {
  background: rgba(244, 115, 25, 0.15);
  border-color: rgba(244, 115, 25, 0.35);
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  color: var(--text);
  letter-spacing: -0.01em;
  /* Substantial heading feel */
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-2);
  max-width: 480px;
  margin-bottom: 2rem;
}

/* Hero search */
.hero-search {
  margin-bottom: 2rem;
}

/* Removed legacy search-box code - replaced by .hero-search-form and .search-form-full .search-box */
/* Hero stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.stat strong {
  display: block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
}

.stat span {
  font-size: .8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.stat-sep {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Hero visual */
.hero-visual {
  display: flex;
  justify-content: center;
}

.calc-preview {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  width: 280px;
  animation: float 4s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

.calc-screen {
  background: var(--bg2);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  margin-bottom: 1rem;
  text-align: right;
}

.calc-display {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
}

.calc-label {
  font-size: .8rem;
  color: var(--success);
  margin-top: .25rem;
}

.calc-keys {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .5rem;
}

.calc-keys span {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .625rem;
  text-align: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: .875rem;
  cursor: default;
  transition: background var(--transition);
}

.calc-keys span.op {
  background: var(--bg2);
  color: var(--accent);
}

.calc-keys span.eq {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.calc-keys span.zero {
  grid-column: span 2;
}

.calc-keys span:hover:not(.eq) {
  background: var(--border);
}

/* ── Homepage Section System ─────────────────────────────── */
.home-section {
  padding: 5rem 0;
}

.home-section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem;
}

.home-section-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-primary);
  background: rgba(244, 115, 25, 0.1);
  border: 1px solid rgba(244, 115, 25, 0.25);
  border-radius: 99px;
  padding: 0.3rem 0.9rem;
  margin-bottom: 1rem;
}

.home-section-title {
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  font-weight: 800;
  color: var(--color-secondary);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 0.875rem;
}

.home-section-subtitle {
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 620px;
  margin: 0 auto;
}

/* --- Featured Card Style --- */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 1200px) {
  .featured-grid {
    grid-template-columns: repeat(4, 1fr);
    /* 4 columns for 8 tools (2 rows) */
  }
}

/* Mobile visibility management */
@media (max-width: 767px) {
  .hidden-mobile {
    display: none !important;
  }
}

.featured-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.25rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.featured-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-primary);
  box-shadow:
    0 20px 40px -15px rgba(0, 0, 0, 0.12),
    0 0 0 4px var(--color-primary)10;
}

.featured-card .badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: var(--color-primary);
  color: white;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.featured-card-icon {
  font-size: 3.2rem;
  /* Larger Icon */
  margin-bottom: 0.75rem;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.05));
  transition: transform 0.3s ease;
}

.featured-card:hover .featured-card-icon {
  transform: scale(1.1);
}

.featured-card-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-secondary);
  margin-bottom: 0.4rem;
  line-height: 1.2;
}

.featured-card-desc {
  font-size: 0.85rem;
  color: var(--text-2);
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  /* Standard property */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Homepage Category Grid ────────────────────────────── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  /* Reduced width */
  gap: 1.75rem;
  /* Increased spacing */
}

.cat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 5px solid var(--cat-color);
  /* Thicker premium top accent */
  border-radius: 24px;
  padding: 1.25rem 1.15rem 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  min-height: 420px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

/* Premium Top Shade Effect (matches Tool Cards) */
.cat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  /* Increased height */
  background: linear-gradient(to bottom, color-mix(in srgb, var(--cat-color) 35%, transparent), transparent);
  /* Higher opacity */
  pointer-events: none;
  z-index: 0;
}

.cat-card:hover {
  transform: translateY(-10px) scale(1.015);
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.12);
  border-top-color: var(--color-primary);
  z-index: 10;
}

.cat-card-top {
  position: relative;
  z-index: 2;
  /* Highest depth for icon/title */
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-top: 0.25rem;
}

.cat-card-icon {
  font-size: 2.75rem;
  color: var(--cat-color);
  line-height: 1;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  flex-shrink: 0;
  margin-right: 0.15rem;
  filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.08));
  display: flex;
  align-items: center;
  justify-content: center;
}

.cat-card:hover .cat-card-icon {
  transform: scale(1.15) translateY(-3px);
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.12));
}

.cat-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.015em;
  line-height: 1.1;
}

.cat-card-links-compact {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 1.25rem;
  flex: 1;
}

.cat-compact-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.45rem 0.625rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-2);
  font-size: 0.825rem;
  font-weight: 700;
  line-height: 1.2;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border-left: 2px solid transparent;
  position: relative;
}

.cat-compact-link:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--color-secondary);
  border-left-color: var(--cat-color);
  padding-left: 0.9rem;
}

/* Hover Arrow at the Right Edge */
.cat-compact-link::after {
  content: '▶';
  font-size: 0.65rem;
  color: var(--cat-color);
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  margin-left: auto;
  /* Push to right edge */
}

.cat-compact-link:hover::after {
  opacity: 1;
  transform: translateX(0);
}

.compact-link-bullet {
  width: 6px;
  height: 6px;
  background: var(--muted);
  border-radius: 50%;
  /* Solid round bullet */
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.cat-compact-link:hover .compact-link-bullet {
  background: var(--cat-color);
  transform: scale(1.2);
}

.compact-link-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.005em;
}

.cat-card-footer-sticky {
  margin: auto -1.15rem 0;
  padding: 1rem 1.15rem;
  background: var(--cat-color);
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.825rem;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 5;
  /* Keep it above the card shade */
}

.cat-card:hover .cat-card-footer-sticky {
  background: var(--color-primary);
  color: #fff !important;
  /* Force visibility */
  padding-left: 1.35rem;
  padding-right: 1.35rem;
}

/* ── Why / Difference Grid ─────────────────────────────── */
.why-section {
  background: var(--surface2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.difference-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.difference-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}

.difference-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--diff-color, var(--color-primary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.difference-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px -8px rgba(0, 0, 0, 0.14);
  border-color: var(--diff-color, var(--color-primary));
}

.difference-card:hover::after {
  transform: scaleX(1);
}

.difference-card-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s ease;
  color: var(--diff-color, var(--color-primary));
}

.difference-card:hover .difference-card-icon-wrap {
  transform: scale(1.05);
}

.difference-card-icon {
  font-size: 1.9rem;
  line-height: 1;
}

.difference-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.difference-card-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  margin: 0;
}

.difference-card-desc {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.65;
  margin: 0;
}

@media (max-width: 1024px) {
  .difference-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .difference-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .difference-card {
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
  }

  .difference-card-icon-wrap {
    width: 50px;
    height: 50px;
    min-width: 50px;
  }

  .difference-card::after {
    display: none;
  }
}

/* ── SEO Pillar Grid ────────────────────────────────────── */
.seo-content-section {
  background: var(--bg);
}

.seo-pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.seo-pillar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

.seo-pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px -12px rgba(0, 0, 0, 0.12);
}

.seo-pillar-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem; /* Larger font size since box is gone */
  flex-shrink: 0;
  transition: transform 0.25s ease;
  background: transparent;
}

.seo-pillar-card:hover .seo-pillar-icon {
  transform: scale(1.06);
}

.seo-pillar-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-secondary);
  margin: 0;
}

.seo-pillar-desc {
  font-size: 0.925rem;
  line-height: 1.75;
  color: var(--text-2);
  margin: 0;
  flex: 1;
}

.seo-pillar-desc strong {
  color: var(--text);
  font-weight: 700;
}

.seo-pillar-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-secondary);
  text-decoration: none;
  margin-top: 0.25rem;
  transition: gap 0.2s ease, color 0.2s ease;
}

.seo-pillar-link:hover {
  color: var(--color-primary);
  gap: 0.75rem;
}

.seo-pillar-link svg {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.seo-pillar-link:hover svg {
  transform: translateX(3px);
}

@media (max-width: 1024px) {
  .seo-pillar-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .seo-pillar-card {
    flex-direction: row;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.5rem;
  }

  .seo-pillar-icon {
    min-width: 52px;
  }
}

@media (max-width: 480px) {
  .seo-pillar-card {
    flex-direction: column;
    gap: 0.875rem;
    padding: 1.25rem;
  }
}

/* Home Sections — compact spacing on mobile */
@media (max-width: 768px) {
  .home-section {
    padding: 3rem 0;
  }

  .home-section-header {
    margin-bottom: 2.25rem;
  }

  .home-section-title {
    font-size: 1.6rem;
  }
}

/* Category Grid — responsive restoration */
@media (max-width: 1024px) {
  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .cat-card {
    padding: 1.25rem 0.85rem 0;
    /* Reduced side padding for more text room */
  }

  .cat-card-title {
    font-size: 1.15rem;
    /* Better visibility in 2-column mode */
  }

  .cat-compact-link {
    font-size: 0.85rem;
    /* Larger font for readability */
    padding: 0.45rem 0.5rem;
  }

  .cat-card-footer-sticky {
    margin: auto -0.85rem 0;
    padding: 0.9rem 0.85rem;
  }
}

@media (max-width: 540px) {
  .cat-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

/* --- Calculator FAQ Styles (Theme Aware) --- */
.calc-faq {
  margin-top: 3.5rem;
  padding: 3rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  transition: background var(--transition), border var(--transition);
  scroll-margin-top: 100px;
  /* Offset for sticky header */
}

.calc-faq__title {
  font-size: 1.8rem;
  margin-bottom: 2.5rem;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 1rem;
  letter-spacing: -0.02em;
}

.calc-faq__title::before {
  content: '❓';
  font-size: 1.5rem;
  filter: drop-shadow(0 0 10px var(--cat-color));
}

.calc-faq__list {
  display: grid;
  gap: 2rem;
}

.faq-item {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  transition: transform 0.2s ease;
}

.faq-item:hover {
  transform: translateX(5px);
}

.faq-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.faq-question {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--cat-color, #6366f1);
  opacity: 0.95;
  line-height: 1.4;
}

.faq-answer {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-2);
  font-weight: 400;
}

/* ── Mobile Optimization for Category Grid ────────────────── */
@media (max-width: 640px) {
  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .cat-card {
    min-height: auto;
    padding: 1rem 0.75rem 0;
    border-radius: 16px;
  }

  .cat-card-top {
    gap: 0.5rem;
    margin-bottom: 0.85rem;
    padding-top: 0;
  }

  .cat-card-icon {
    font-size: 1.85rem;
  }

  .cat-card-title {
    font-size: 0.9rem;
    line-height: 1.2;
    letter-spacing: -0.01em;
  }

  .cat-card-links-compact {
    margin-bottom: 0.85rem;
    gap: 1px;
  }

  .cat-compact-link {
    font-size: 0.7rem;
    padding: 0.35rem 0.45rem;
    gap: 0.4rem;
    line-height: 1.1;
  }

  .compact-link-bullet {
    width: 4px;
    height: 4px;
  }

  .cat-card-footer-sticky {
    margin: auto -0.75rem 0;
    padding: 0.75rem;
    font-size: 0.725rem;
    font-weight: 800;
  }

  .cat-card:hover {
    transform: translateY(-5px);
    /* Less aggressive on mobile */
  }

  .cat-card:hover .cat-card-footer-sticky {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .cat-compact-link::after {
    display: none;
    /* Hide hover arrow on mobile to save space */
  }
}

@media (max-width: 767px) {
  .calc-info__desc { display: none; }
  .calc-info__facts { font-size: 0.8rem; gap: 0.5rem; margin-bottom: 0; }
}