/*
====================================================================
 ShreeJiSteno.in
 Developed and maintained by Pankaj Meena.
 
 Copyright © 2026 Shree Ji Steno & The Owner. All Rights Reserved.
 
 This stylesheet and its visual design elements are protected 
 by copyright law. Unauthorized use is strictly prohibited.
 
 For developer inquiries, please contact: Pankajmeenaone@gmail.com
====================================================================
*/
/* all-exams.css */

.all-exams-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.all-exams-heading {
  text-align: center;
  margin-bottom: 40px;
}

.all-exams-heading h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-on-background);
  margin-bottom: 12px;
  font-family: 'General Sans', sans-serif;
}

.all-exams-heading p {
  color: var(--color-on-surface-variant);
  font-size: 1rem;
}

.exam-search-wrap {
  max-width: 500px;
  margin: 0 auto 50px;
  padding: 0 10px;
}

#examSearch {
  width: 100%;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 12px;
  background-color: var(--color-surface);
  border: 2px solid var(--color-outline);
  color: var(--color-on-background);
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

#examSearch:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15);
}

.exam-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 10px 60px;
}

.exam-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 20px;
  padding: 28px 20px 24px;
  text-align: center;
  cursor: default;
  background-color: var(--color-surface);
  border: 2px solid var(--color-outline);
  color: var(--color-on-background);
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -2px rgba(0,0,0,0.05);
}

.exam-blob {
  position: absolute;
  top: -30%; left: 50%;
  width: 170px; height: 170px;
  transform: translateX(-50%) scale(.9);
  background: var(--accent);
  border-radius: 42% 58% 65% 35% / 45% 45% 55% 55%;
  opacity: .16;
  z-index: 0;
}

.exam-logo {
  position: relative; z-index: 1;
  width: 64px; height: 64px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

.exam-logo img { width: 44px; height: 44px; object-fit: contain; }

.exam-title {
  position: relative; z-index: 1;
  font-weight: 700; font-size: 15px; line-height: 1.3;
  margin-bottom: 16px; min-height: 38px;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-on-background);
}

.exam-practice-btn {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 20px; border-radius: 999px;
  font-size: 13px; font-weight: 700;
  color: #fff; background: var(--accent);
  border: none; cursor: pointer;
}

/* Reduced motion media query wrapping the animations */
@media (prefers-reduced-motion: no-preference) {
  .exam-card {
    transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .35s ease, border-color .35s ease;
  }
  .exam-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.08), 0 8px 12px -6px rgba(0, 0, 0, 0.08);
    border-color: var(--accent);
  }
  
  .exam-blob {
    transition: border-radius .6s cubic-bezier(.34,1.56,.64,1),
               transform .6s cubic-bezier(.34,1.56,.64,1),
               opacity .4s ease;
  }
  .exam-card:hover .exam-blob {
    border-radius: 60% 40% 35% 65% / 55% 62% 38% 45%;
    transform: translateX(-50%) scale(1.15) rotate(8deg);
    opacity: .28;
  }
  
  .exam-logo {
    transition: transform .5s cubic-bezier(.34,1.56,.64,1);
  }
  .exam-card:hover .exam-logo { transform: scale(1.08) rotate(-4deg); }
  
  .exam-practice-btn {
    transition: transform .25s cubic-bezier(.34,1.56,.64,1), filter .25s ease;
  }
  .exam-practice-btn:hover { transform: scale(1.06); filter: brightness(1.06); }
  .exam-practice-btn:active { transform: scale(.92) scaleY(.85); }
}

@media (max-width: 640px) {
  .exam-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 0 10px 40px;
  }
  .all-exams-heading h1 {
    font-size: 1.8rem;
  }
}

@media (max-width: 400px) {
  .exam-grid {
    grid-template-columns: 1fr;
  }
}
