* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background: #f8fafc;
  color: #1e293b;
  line-height: 1.5;
}

/* navigation & logo – clean, professional */
.navbar {
  background: white;
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.02),
    0 2px 6px rgba(0, 20, 40, 0.05);
  padding: 0.9rem 2rem;
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  border-bottom: 1px solid #e9eef2;
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 120%;
  left: 0;
  background: white;
  border-radius: 14px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  padding: 0.6rem 0;
  display: none;
  flex-direction: column;
  min-width: 200px;
}

.dropdown-menu a {
  padding: 0.6rem 1.2rem;
  display: block;
  color: #334155;
  text-decoration: none;
}

.dropdown-menu a:hover {
  background: #f1f5f9;
}

.dropdown:hover .dropdown-menu {
  display: flex;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: #1e293b;
}

.logo-svg {
  width: 40px;
  height: 40px;
  background: linear-gradient(145deg, #4f46e5, #7c3aed);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 1.5rem;
  box-shadow: 0 10px 15px -5px #a78bfa40;
}

.logo-text {
  font-size: 1.6rem;
  font-weight: 700;
  font-family: "Red Hat Display", sans-serif;
  letter-spacing: -0.02em;
  background: linear-gradient(145deg, #1e293b, #334155);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  gap: 2.2rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: #334155;
  font-weight: 500;
  font-size: 1.05rem;
  transition: color 0.15s;
}

.nav-links a:hover {
  color: #4f46e5;
}

.btn-start {
  background: #4f46e5;
  color: white !important;
  padding: 0.6rem 1.6rem;
  border-radius: 40px;
  font-weight: 600;
  box-shadow: 0 8px 16px -6px #4f46e580;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  text-decoration: none;
}

.btn-start:hover {
  background: #4338ca;
  transform: translateY(-2px);
  box-shadow: 0 14px 22px -8px #4f46e5cc;
}

/* HAMBURGER (hidden by default) */
.menu-toggle {
  display: none;
}

.hamburger {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  user-select: none;
  color: black !important;
}

/* ========================= */
/* 📱 MOBILE STYLES */
/* ========================= */
@media (max-width: 768px) {

  /* SHOW HAMBURGER */
  .hamburger {
    display: block;
  }

  /* NAV LINKS → HIDDEN BY DEFAULT */
  .nav-links {
    width: 100%;
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;

    max-height: 0;
    overflow: hidden;

    transition: max-height 0.3s ease;
  }

  /* WHEN TOGGLED → SHOW MENU */
  .menu-toggle:checked + .hamburger + .nav-links {
    max-height: 500px; /* enough height to show all links */
    padding-top: 1rem;
  }

  /* FULL WIDTH LINKS */
  .nav-links a {
    width: 100%;
    padding: 0.5rem 0;
  }

  /* BUTTON FULL WIDTH */
  .btn-start {
    width: 100%;
    text-align: center;
  }
}

/* main container */
.wrapper {
  margin: 0 auto;
  /* padding: 1.5rem 2rem 4rem; */
}

/* HOMEPAGE specific hero */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 100px 3%;
  min-height: 67vh;
  background: linear-gradient(135deg, #f8fafc, #eef2ff);
  gap: 40px;
}

.hero-content {
  max-width: 550px;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 35px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
}

.btn-primary {
  background: #6366f1;
  color: white;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.btn-primary:hover {
  background: #4f46e5;
}

.btn-secondary {
  border: 2px solid #6366f1;
  color: #6366f1;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}

.btn-secondary:hover {
  background: #6366f1;
  color: white;
}

.hero-video video {
  height: 400px;
  width: 400px;
  border-radius: 16px;
  background-size: cover;
  /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); */
}

@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }

  .hero-video video {
    width: 100%;
  }

  .hero-buttons {
    justify-content: center;
  }
}

/* metrics row (like 16p) */
.metrics {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  background: white;
  border-radius: 40px;
  padding: 2.5rem 2rem;
  margin: 4rem 0;
  box-shadow: 0 20px 35px -12px #cbd5e180;
  border: 1px solid #e2e8f0;
}

.metric-item {
  flex: 1 1 160px;
  text-align: center;
}

.metric-value {
  font-family: "Red Hat Display", sans-serif;
  font-size: 2.6rem;
  font-weight: 800;
  color: #0f172a;
}

.metric-label {
  color: #64748b;
  font-weight: 500;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.metric-value.purple {
  color: #8b5cf6;
}
.metric-value.green {
  color: #10b981;
}
.metric-value.blue {
  color: #3b82f6;
}
.metric-value.yellow {
  color: #f59e0b;
}

/* feature cards (understand yourself / others) */
.feature-grid {
  display: flex;
  gap: 2rem;
  margin: 4rem 0;
  flex-wrap: wrap;
}

.feature-card {
  background: white;
  flex: 1 1 280px;
  border-radius: 32px;
  padding: 2rem 1.8rem;
  box-shadow: 0 12px 30px -12px #b9c7da;
  border: 1px solid #dee7f0;
  transition: 0.2s;
}

.feature-card:hover {
  transform: scale(1.01);
  border-color: #a5b4cb;
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: #eef2ff;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1.8rem;
}

.feature-card h3 {
  font-size: 1.8rem;
  font-family: "Red Hat Display", sans-serif;
  margin-bottom: 0.8rem;
}

.feature-card p {
  color: #475569;
  margin-bottom: 2rem;
}

.link-arrow {
  text-decoration: none;
  font-weight: 600;
  color: #4f46e5;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.link-arrow::after {
  content: "→";
  font-size: 1.4rem;
  transition: transform 0.2s;
}
.link-arrow:hover::after {
  transform: translateX(5px);
}

/* Categories Page Styles */
.categories-header {
  text-align: center;
  margin: 2rem 0 2.5rem;
}

.categories-header h2 {
  font-size: 2.8rem;
  font-family: "Red Hat Display", sans-serif;
  font-weight: 800;
  background: linear-gradient(145deg, #1e293b, #4f46e5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.categories-header p {
  color: #4b5b70;
  font-size: 1.2rem;
}

/* Quiz Search Bar */
.quiz-search {
  max-width: 500px;
  margin: 2rem auto;
  position: relative;
}

.quiz-search input {
  width: 100%;
  padding: 1rem 1.5rem;
  border-radius: 50px;
  border: 2px solid #e2e8f0;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s;
  background: white;
  box-shadow: 0 4px 6px -2px #cbd5e1;
}

.quiz-search input:focus {
  border-color: #4f46e5;
  box-shadow: 0 8px 12px -4px #a5b4fc;
}

.quiz-search i {
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
}

/* Category Filter Buttons */
.quiz-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 2rem 0 3rem;
}

.filter-btn {
  padding: 0.7rem 1.8rem;
  border: 2px solid #e2e8f0;
  background: white;
  border-radius: 40px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.95rem;
}

.filter-btn:hover {
  border-color: #4f46e5;
  color: #4f46e5;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px #dbeafe;
}

.filter-btn.active {
  background: #4f46e5;
  border-color: #4f46e5;
  color: white;
  box-shadow: 0 8px 16px -4px #818cf8;
}
/* Modern Quiz Cards */
.posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Changed to 3 columns */
  gap: 25px;
  margin: 30px;
}

/* Tablet view - 2 cards per row */
@media (max-width: 1000px) {
  .posts {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile view - 1 card per row */
@media (max-width: 600px) {
  .posts {
    grid-template-columns: 1fr;
  }
}

.quiz-card {
  background: white;
  border-radius: 28px;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 12px 30px -12px #94a3b8;
  border: 1px solid #e9eef2;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  animation: fadeInUp 0.6s ease;
  position: relative;
  overflow: hidden;
  width: 100%; /* Ensure full width of grid cell */
  height: 100%; /* Take full height of grid cell */
  min-height: 380px; /* Set minimum height for consistency */
  box-sizing: border-box;
}

/* Make all cards the same height by using flex grow */
.quiz-card {
  display: flex;
  flex-direction: column;
}

.quiz-card > *:not(.quiz-stats):not(.quiz-meta) {
  flex-shrink: 0; /* Prevent shrinking of top elements */
}

.quiz-stats {
  margin-top: auto; /* Push stats to bottom */
  width: 100%;
  flex-shrink: 0;
}

.quiz-meta {
  width: 100%;
  flex-shrink: 0;
}

.quiz-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 40px -15px #6366f1;
  border-color: #4f46e5;
}

.quiz-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #4f46e5, #818cf8);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 1;
}

.quiz-card:hover::before {
  opacity: 1;
}

.quiz-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  background: #eef2ff;
  width: 70px;
  height: 70px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.quiz-card h4 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-family: "Red Hat Display", sans-serif;
  line-height: 1.3;
  /* Ensure heading doesn't overflow */
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 3.9rem; /* 2 lines * line-height */
}

.quiz-description {
  color: #64748b;
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
  line-height: 1.5;
  /* Limit description to 3 lines for consistency */
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  min-height: 4.2rem; /* 3 lines * line-height */
  flex-shrink: 0;
}

/* Difficulty Badges */
.difficulty {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 1rem;
  align-self: flex-start;
  flex-shrink: 0;
}

.difficulty.easy {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.difficulty.medium {
  background: #fef9c3;
  color: #854d0e;
  border: 1px solid #fde047;
}

.difficulty.hard {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

/* Popularity Progress Bar */
.quiz-stats {
  margin-top: auto; /* Push to bottom */
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  flex-shrink: 0;
}

.stat-label {
  display: flex;
  justify-content: space-between;
  color: #64748b;
  font-size: 0.85rem;
  font-weight: 500;
}

.quiz-progress {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 20px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #4f46e5, #818cf8);
  border-radius: 20px;
  transition: width 1s ease;
}

/* Quiz Meta Info */
.quiz-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
  color: #94a3b8;
  font-size: 0.8rem;
  border-top: 1px solid #e9eef2;
  padding-top: 1rem;
  width: 100%;
  flex-shrink: 0;
}

.quiz-meta span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* No Results Message */
.no-results {
  text-align: center;
  padding: 3rem;
  color: #94a3b8;
  font-size: 1.2rem;
  grid-column: 1 / -1;
}

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Ensure the grid container has proper padding */
.wrapper {
  margin: 0 auto;
  /* padding: 1.5rem 2rem 4rem; */
}

/* Fix for grid gap on smaller screens */
@media (max-width: 1200px) {
  .posts {
    gap: 20px;
    margin: 20px;
  }
}

/* Ensure cards are truly equal height */
.quiz-card {
  display: flex;
  flex-direction: column;
}

/* Make sure all cards in the same row have equal height */
.posts {
  align-items: stretch; /* This makes all grid items stretch to same height */
}

/* Optional: Add a minimum width for cards to prevent them from getting too small */
@media (min-width: 1001px) {
  .quiz-card {
    min-width: 280px; /* Prevent cards from becoming too narrow */
  }
}
/* footer (clean, inspired) */
.footer {
  border-top: 1px solid #dde3e9;
  margin-top: 5rem;
  padding-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  color: #4a5a6e;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  text-decoration: none;
  color: #2c3e50;
  font-size: 0.95rem;
}

.social-icons {
  display: flex;
  gap: 1.2rem;
}

.social-icons span {
  opacity: 0.7;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.3s;
}

.social-icons span:hover {
  opacity: 1;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .navbar {
    flex-direction: row;
    gap: 1rem;
    padding: 1rem;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .metrics {
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
  }

  .posts {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .footer {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Testimonial Section */
.testimonial {
  background: linear-gradient(145deg, #eef2ff, #ffffff);
  border-radius: 50px;
  padding: 3rem;
  margin: 4rem 0;
  text-align: center;
  border: 1px solid #d9e2ef;
}

.testimonial p {
  font-size: 1.4rem;
  font-style: italic;
  color: #1e293b;
  max-width: 800px;
  margin: 0 auto;
}

.testimonial span {
  display: block;
  margin-top: 1.5rem;
  font-weight: 600;
  color: #4f46e5;
}

/* Testimonials Carousel Styles */
.testimonials-section {
  text-align: center;
  padding: 4rem 0;
  background: linear-gradient(145deg, #f8fafc, #ffffff);
  border-radius: 60px;
  margin: 3rem 0;
}

.section-title {
  font-family: "Red Hat Display", sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: #64748b;
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

.testimonials-carousel {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  overflow: hidden;
}

.carousel-container {
  overflow: hidden;
  border-radius: 30px;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.testimonial-card {
  flex: 0 0 calc(33.333% - 2rem);
  margin: 1rem;
  background: white;
  border-radius: 30px;
  box-shadow: 0 15px 30px -10px #cbd5e1;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 40px -12px #4f46e580;
}

.testimonial-content {
  padding: 2rem;
  position: relative;
}

.quote-icon {
  font-size: 4rem;
  color: #4f46e5;
  opacity: 0.2;
  position: absolute;
  top: 10px;
  left: 20px;
  font-family: serif;
}

.testimonial-text {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #334155;
  margin: 1.5rem 0 2rem;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.author-avatar {
  width: 50px;
  height: 50px;
  background: #eef2ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.author-info {
  text-align: left;
}

.author-info h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.2rem;
}

.author-info p {
  font-size: 0.85rem;
  color: #64748b;
}

.testimonial-rating {
  color: #fbbf24;
  font-size: 1.1rem;
  text-align: left;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  border: 2px solid #e2e8f0;
  color: #4f46e5;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s;
  z-index: 10;
}

.carousel-btn:hover {
  background: #4f46e5;
  color: white;
  border-color: #4f46e5;
}

.carousel-btn.prev {
  left: 0;
}

.carousel-btn.next {
  right: 0;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
  cursor: pointer;
  transition: all 0.3s;
}

.dot.active {
  background: #4f46e5;
  width: 25px;
  border-radius: 10px;
}

/* Modern Footer Styles */
.modern-footer {
  position: relative;
  width: 100%; /* full width */
  background: linear-gradient(145deg, #0b1120 0%, #0f172a 100%);
  color: #fff;
  overflow: hidden;
}

/* Wave decoration */
.footer-wave {
  position: absolute;
  top: -2px;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  transform: rotate(180deg);
}

.footer-wave svg {
  position: relative;
  display: block;
  width: 100%; /* full width */
  height: 60px;
}

.footer-wave path {
  fill: #f8fafc;
}

/* Main footer content */
.footer-main {
  position: relative;
  width: 100%;
  padding: 5rem 2rem 3rem; /* full width padding */
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  box-sizing: border-box;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);  gap: 2.5rem;
  width: 100%;
  box-sizing: border-box;
}

/* Brand column */
.footer-col {
  display: flex;
  flex-direction: column;
}

.brand-col {
  max-width: 320px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}

.brand-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(145deg, #4f46e5, #7c3aed);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  box-shadow: 0 10px 20px -5px rgba(79, 70, 229, 0.4);
}

.brand-name {
  font-size: 1.6rem;
  font-weight: 700;
  font-family: "Red Hat Display", sans-serif;
  background: linear-gradient(145deg, #fff, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-tagline {
  color: #94a3b8;
  line-height: 1.6;
  font-size: 0.95rem;
  margin-bottom: 1.8rem;
}

/* Social links */
.social-links {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.social-link {
  width: 40px;
  height: 40px;
  background: #1e293b;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  transition: all 0.3s ease;
  border: 1px solid #334155;
}

.social-link:hover {
  background: #4f46e5;
  color: white;
  transform: translateY(-5px);
  border-color: #4f46e5;
  box-shadow: 0 10px 20px -5px rgba(79, 70, 229, 0.5);
}

/* Footer titles */
.footer-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, #4f46e5, #818cf8);
  border-radius: 2px;
}

/* Footer menu */
.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu li {
  margin-bottom: 0.8rem;
}

.footer-menu a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
}

.footer-menu a::before {
  content: "→";
  position: absolute;
  left: -20px;
  opacity: 0;
  transition: all 0.3s ease;
  color: #4f46e5;
}

.footer-menu a:hover {
  color: white;
  transform: translateX(20px);
}

.footer-menu a:hover::before {
  opacity: 1;
  left: -15px;
}

/* ========================= */
/* 📱 TABLET (≤ 1024px) */
/* ========================= */
@media (max-width: 1024px) {
  .footer-container {
    grid-template-columns: repeat(2, 1fr); /* 2 columns */
    gap: 2rem;
  }

  .brand-col {
    max-width: 100%;
  }
}

/* ========================= */
/* 📱 MOBILE (≤ 768px) */
/* ========================= */
@media (max-width: 768px) {

  .footer-main {
    padding: 4rem 1.5rem 2.5rem;
  }

  .footer-container {
    grid-template-columns: 1fr; /* single column */
    gap: 2rem;
  }

  /* Center everything nicely */
  .footer-col {
    align-items: flex-start;
  }

  .footer-brand {
    justify-content: flex-start;
  }

  .brand-tagline {
    max-width: 100%;
  }

  /* Social icons centered */
  .social-links {
    justify-content: flex-start;
  }

  /* Fix arrow spacing */
  .footer-menu a:hover {
    transform: translateX(10px);
  }

  .footer-menu a::before {
    left: -15px;
  }
}

/* ========================= */
/* 📱 SMALL MOBILE (≤ 480px) */
/* ========================= */
@media (max-width: 480px) {

  .footer-main {
    padding: 3rem 1rem 2rem;
    align-content: center;
  }

  .footer-title {
    font-size: 1rem;
  }

  .brand-name {
    font-size: 1.3rem;
  }

  .brand-icon {
    width: 35px;
    height: 35px;
    font-size: 1.2rem;
  }

  .social-link {
    width: 36px;
    height: 36px;
  }

  .footer-menu a {
    font-size: 0.9rem;
  }
}

/* Css for Categories Starts here */

/* Page wrapper with animated background */
.quiz-wrapper {
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  position: relative;
  overflow: hidden;
}

/* Animated floating particles */
.quiz-wrapper::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.05) 2px,
    transparent 2px
  );
  background-size: 60px 60px;
  animation: float-bg 35s linear infinite;
  pointer-events: none;
  z-index: 0;
}

/* Moving gradient overlay */
.quiz-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(79, 70, 229, 0.2),
    rgba(124, 58, 237, 0.2),
    rgba(79, 70, 229, 0.2)
  );
  background-size: 600% 600%;
  animation: gradient-move 20s linear infinite;
  z-index: 0;
}

@keyframes float-bg {
  0% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(50px, 50px);
  }
  100% {
    transform: translate(0, 0);
  }
}

@keyframes gradient-move {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Header styling */
.quiz-header {
  text-align: center;
  color: #fff;
  z-index: 1;
}

.quiz-header h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.quiz-header p {
  font-size: 1rem;
  color: #94a3b8;
}

/* Quiz grid layout */
.quiz-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Fixed to 3 columns */
  gap: 2rem;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  z-index: 1;
  padding: 1rem;
}

/* Page link / quiz card */
.page-link {
  display: block;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.5);
  transform: translateY(0);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  aspect-ratio: 4/3; /* Consistent card proportions */
  text-decoration: none;
}

.page-link-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.page-link:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 25px rgba(79, 70, 229, 0.5);
}

.page-link:hover .page-link-img {
  transform: scale(1.08);
}

/* Special quiz with pulsing effect */
.special-quiz {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 20px rgba(232, 67, 66, 0.5);
  }
  50% {
    box-shadow: 0 0 40px rgba(232, 67, 66, 0.8);
  }
  100% {
    box-shadow: 0 0 20px rgba(232, 67, 66, 0.5);
  }
}

/* Animated card wrapper (like reference) */
.animated-card-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hand {
  position: absolute;
  width: 40px;
  height: 40px;
  background: url("images/hand.png") no-repeat center/contain;
  top: 50%;
  transform: translateY(-50%);
  animation: hand-wiggle 1.5s infinite ease-in-out;
}

.hand-left {
  left: -20px;
}
.hand-right {
  right: -20px;
}

@keyframes hand-wiggle {
  0%,
  100% {
    transform: translateY(-50%) rotate(0deg);
  }
  50% {
    transform: translateY(-50%) rotate(15deg);
  }
}

/* Responsive tweaks */
@media (max-width: 1024px) {
  .quiz-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
    gap: 1.5rem;
  }
}

@media (max-width: 640px) {
  .quiz-grid {
    grid-template-columns: 1fr; /* 1 column on mobile */
    gap: 1.5rem;
  }
}

/* Overlay wrapper */
.overlay-wrapper {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
}

/* Overlay effect */
.overlay-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35); /* semi-transparent dark overlay */
  transition: background 0.3s ease;
}

.overlay-wrapper:hover::after {
  background: rgba(0, 0, 0, 0.5); /* darker on hover */
}

/* Overlay text */
.overlay-text {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.7);
  z-index: 2;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.overlay-wrapper:hover .overlay-text {
  transform: translateX(-50%) translateY(-5px);
  opacity: 1;
}

/* Blog CSS Styling */

/* Page layout with animated gradient */
.blog-wrapper {
  padding: 60px 8%;
  background: linear-gradient(135deg, #0f172a 0%, #1a2639 100%);
  min-height: 100vh;
  color: white;
  position: relative;
  overflow: hidden;
}

/* Animated background particles */
.blog-wrapper::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(99, 102, 241, 0.1) 2px,
    transparent 2px
  );
  background-size: 50px 50px;
  animation: floatBg 40s linear infinite;
  pointer-events: none;
}

@keyframes floatBg {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  100% {
    transform: translate(100px, 100px) rotate(10deg);
  }
}

/* Hero section with animation */
.blog-hero {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  z-index: 1;
  animation: fadeInDown 0.8s ease;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.blog-hero h1 {
  font-size: 48px;
  margin-bottom: 15px;
  background: linear-gradient(135deg, #fff, #a5b4fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.blog-hero p {
  color: #94a3b8;
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
}

/* Stats bar */
.blog-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 30px;
  padding: 20px;
  background: rgba(30, 41, 59, 0.5);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 24px;
  font-weight: bold;
  color: #6366f1;
}

.stat-label {
  font-size: 14px;
  color: #94a3b8;
}

/* Layout */
.blog-container {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 40px;
  position: relative;
  z-index: 1;
}

/* Loading spinner */
.loading-spinner {
  text-align: center;
  padding: 40px;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 3px solid #1e293b;
  border-top-color: #6366f1;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 15px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Featured Post with hover effect */
.featured-post {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 40px;
  cursor: pointer;
  transition: all 0.3s ease;
  animation: fadeInUp 0.8s ease 0.2s both;
  text-decoration: none;
  color: white;
  display: block;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.featured-post:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.3);
}

.featured-post img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.featured-post:hover img {
  transform: scale(1.05);
}

.featured-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.95));
  transform: translateY(0);
  transition: transform 0.3s ease;
}

.featured-content h2 {
  font-size: 32px;
  margin-bottom: 15px;
  max-width: 80%;
}

.featured-content p {
  color: #cbd5f5;
  font-size: 16px;
  max-width: 70%;
  margin-bottom: 20px;
}

.featured-meta {
  display: flex;
  gap: 20px;
  color: #94a3b8;
  font-size: 14px;
}

.featured-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Category filter */
.category-filter {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 20px;
  background: #1e293b;
  border: none;
  border-radius: 30px;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
}

.filter-btn:hover,
.filter-btn.active {
  background: #6366f1;
  color: white;
  transform: translateY(-2px);
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.blog-card {
  background: #1e293b;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  animation: fadeIn 0.5s ease;
  position: relative;
  border: 1px solid transparent;
  text-decoration: none;
  color: white;
  display: block;
}

.blog-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.4);
  border-color: #6366f1;
}

.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover img {
  transform: scale(1.1);
}

.blog-category {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #6366f1;
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  z-index: 2;
}

.blog-content {
  padding: 20px;
  position: relative;
}

.blog-content h3 {
  font-size: 18px;
  margin-bottom: 10px;
  line-height: 1.4;
}

.blog-meta {
  display: flex;
  gap: 15px;
  color: #94a3b8;
  font-size: 12px;
  margin-bottom: 10px;
}

.blog-content p {
  color: #94a3b8;
  font-size: 14px;
  margin-bottom: 15px;
  line-height: 1.6;
}

.read-more {
  color: #6366f1;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: gap 0.3s ease;
}

.read-more:hover {
  gap: 10px;
  color: #818cf8;
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
  animation: fadeInRight 0.8s ease;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.sidebar-box {
  background: #1e293b;
  padding: 25px;
  border-radius: 20px;
  transition: transform 0.3s ease;
}

.sidebar-box:hover {
  transform: translateY(-5px);
}

.sidebar-box h3 {
  margin-bottom: 20px;
  font-size: 20px;
  color: white;
}

/* Search */
.search-wrapper {
  position: relative;
}

.search-input {
  width: 100%;
  padding: 15px;
  border: 2px solid transparent;
  border-radius: 12px;
  background: #0f172a;
  color: white;
  font-size: 16px;
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: #6366f1;
  background: #1a2639;
}

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #1e293b;
  border-radius: 12px;
  margin-top: 5px;
  max-height: 300px;
  overflow-y: auto;
  display: none;
  z-index: 10;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.search-results.active {
  display: block;
}

.search-result-item {
  padding: 12px 15px;
  cursor: pointer;
  border-bottom: 1px solid #2d3748;
  transition: background 0.3s ease;
  text-decoration: none;
  color: white;
  display: block;
}

.search-result-item:hover {
  background: #2d3748;
}

.search-result-item h4 {
  font-size: 14px;
  margin-bottom: 5px;
}

.search-result-item p {
  font-size: 12px;
  color: #94a3b8;
}

/* Categories */
.category-list {
  list-style: none;
}

.category-list li {
  margin-bottom: 12px;
}

.category-list a {
  color: #cbd5f5;
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.category-list a:hover {
  background: #2d3748;
  color: #6366f1;
  transform: translateX(5px);
}

.category-count {
  background: #0f172a;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
}

/* Recent posts */
.recent-post {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  padding: 10px;
  border-radius: 10px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  color: white;
}

.recent-post:hover {
  background: #2d3748;
  transform: translateX(5px);
}

.recent-post img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 10px;
}

.recent-post-info {
  flex: 1;
}

.recent-post-info .recent-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 5px;
  display: block;
  color: white;
  text-decoration: none;
}

.recent-post-date {
  font-size: 12px;
  color: #94a3b8;
}
/* Mobile */
@media (max-width: 900px) {
  .blog-container {
    grid-template-columns: 1fr;
  }

  .blog-hero h1 {
    font-size: 36px;
  }

  .featured-content h2 {
    font-size: 24px;
    max-width: 100%;
  }

  .featured-content p {
    max-width: 100%;
  }
}


/* CSS for Related QUizes in All Quizes */

.related-quizzes{
    padding:80px 0;
    background:#f5f5f5;
}

.quiz-card{
    background:#fff;
    padding:20px;
    border-radius:10px;
    text-align:center;
    box-shadow:0 5px 15px rgba(0,0,0,0.1);
    transition:0.3s;
}

.quiz-card img{
    width:100%;
    border-radius:10px;
    margin-bottom:15px;
}

.quiz-card:hover{
    transform:translateY(-5px);
}


/* Contact Us Styling */

