* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.schoolcore-page-wrapper {
  width: 100%;
  height: 1060px;
  margin: 0 auto;
  padding: 2rem;
  background: linear-gradient(135deg, #004873 0%, #002144 50%, #511539 100%);
}

/* Navigation Tabs */
.exam-management-navigation {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(-30px);
  animation: fadeInDown 0.8s ease-out 0.2s forwards;
}

.exam-nav-tab {
  background: transparent;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  padding: 0.75rem 1.5rem;
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

.exam-nav-tab::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.05)
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.exam-nav-tab:hover::before {
  opacity: 1;
}

.exam-nav-tab:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.exam-nav-tab.active {
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.exam-results-hero-card-div {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Main Content Card */
.exam-results-hero-card {
  background-color: #002848ff;
  backdrop-filter: blur(20px);
  width: 75%;
  height: 600px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 3rem;
  margin-bottom: 3rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: scale(0.95);
  animation: fadeInScale 0.8s ease-out 0.4s forwards;
}

.exam-hero-content-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.exam-results-text-section {
  opacity: 0;
  transform: translateX(-50px);
  animation: slideInLeft 0.8s ease-out 0.6s forwards;
}

.exam-results-text-section h1 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.exam-results-text-section p {
  font-size: 1.5rem;
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 2rem;
  color: #e2e8f0;
  font-weight: 600;
  margin-top: 60px;
}

.exam-cta-buttons {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  margin-top: 80px;
}

.demo-booking-button {
  background: linear-gradient(135deg, #f4f4f7 0%, #efeff2 100%);
  color: #8565faff;
  border: none;
  border-radius: 25px;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  position: relative;
  overflow: hidden;
}

.demo-booking-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.demo-booking-button:hover::before {
  left: 100%;
}

.demo-booking-button:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.learn-more-link {
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 500;
  font-size: 25px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  position: relative;
}

.learn-more-link::after {
  content: "→";
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.learn-more-link:hover {
  color: white;
  transform: translateX(5px);
}

.learn-more-link:hover::after {
  transform: translateX(5px);
}

/* Image Container - Exact Size Match */
.student-quiz-showcase {
  position: relative;
  width: 100%;
  max-width: 400px;
  height: 400px;
  border-radius: 20px;
  overflow: visible; /* Changed from hidden to visible to allow badges to overflow */
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  margin-left: auto;
  opacity: 0;
  transform: translateX(50px);
  animation: slideInRight 0.8s ease-out 0.8s forwards;
}

.student-activity-image {
  width: 100%;
  height: 100%;
  background-color: white;
  background-image: url("https://images.pexels.com/photos/8500290/pexels-photo-8500290.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 20px; /* Add border radius to the image itself */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  opacity: 0.9;
}

.student-activity-image::before {
  content: "";
  font-size: 4rem;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  animation: float 6s ease-in-out infinite;
}

/* FIXED: Solve Badge - Left-top corner, half outside */
.quiz-solve-badge {
  position: absolute;
  top: 30px; /* Negative value to push half outside */
  left: -50px; /* Negative value to push half outside */
  background-color: #fecc4cff;
  color: #1f2937;
  padding: 0.6rem 1.2rem;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 10;
  transition: all 0.3s ease;
  animation: bounceIn 0.6s ease-out 1s both;
  white-space: nowrap;
}

.quiz-solve-badge::before {
  content: "⭐";
  font-size: 1rem;
  animation: sparkle 2s infinite;
}

.quiz-solve-badge:hover {
  transform: scale(1.1) rotate(-2deg);
  box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4);
}

/* FIXED: Results Badge - Right-bottom corner, half outside */
.results-storage-badge {
  position: absolute;
  bottom: -20px; /* Negative value to push half outside */
  right: -20px; /* Negative value to push half outside */
  background-color: #575659ff;
  backdrop-filter: blur(10px);
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
  animation: slideInUp 0.6s ease-out 1.2s both;
  z-index: 10;
}

.results-storage-badge::before {
  content: "📊";
  font-size: 1rem;
  animation: pulse 2s infinite;
}

.results-storage-badge:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.05);
}

.results-badge-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.results-badge-number {
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1;
}

.results-badge-description {
  font-size: 0.7rem;
  opacity: 0.8;
  line-height: 1.1;
  margin-top: 2px;
  font-weight: 400;
}

/* Bottom Section */
.schoolcore-mission-section {
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease-out 1s forwards;
}

.schoolcore-mission-section h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.schoolcore-mission-section p {
  font-size: 1.1rem;
  line-height: 1.6;
  font-weight: 500;
  color: #e2e8f0;
  max-width: 800px;
  margin: 0 auto;
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3) rotate(-5deg);
  }
  50% {
    opacity: 1;
    transform: scale(1.1) rotate(2deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes sparkle {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
  }
  50% {
    transform: scale(1.2) rotate(180deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(0.95);
  }
}

/* NEW RESPONSIVE MEDIA QUERIES */

/* Extra-large screens (1441px and above) */
@media (min-width: 1441px) {
  .schoolcore-page-wrapper {
    padding: 3rem;
  }

  .exam-results-hero-card {
    width: 70%;
    height: 700px;
    padding: 4rem;
  }

  .exam-hero-content-layout {
    gap: 4rem;
  }

  .exam-results-text-section h1 {
    font-size: 2.75rem;
  }

  .exam-results-text-section p {
    font-size: 1.75rem;
  }

  .student-quiz-showcase {
    max-width: 500px;
    height: 500px;
  }

  .schoolcore-mission-section h2 {
    font-size: 3rem;
  }

  .schoolcore-mission-section p {
    font-size: 1.25rem;
  }
}

/* Large screens / Desktops (1025px to 1440px) */
@media (min-width: 1025px) and (max-width: 1440px) {
  .exam-results-hero-card {
    width: 80%;
  }

  .exam-results-text-section h1 {
    font-size: 2.25rem;
  }

  .exam-results-text-section p {
    font-size: 1.4rem;
  }
}

/* Medium screens / Laptops (769px to 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .schoolcore-page-wrapper {
    padding: 2rem 1.5rem;
  }

  .exam-results-hero-card {
    width: 85%;
    height: 550px;
    padding: 2.5rem;
  }

  .exam-hero-content-layout {
    gap: 2.5rem;
  }

  .exam-results-text-section h1 {
    font-size: 2rem;
  }

  .exam-results-text-section p {
    font-size: 1.3rem;
    margin-top: 40px;
  }

  .exam-cta-buttons {
    margin-top: 60px;
    gap: 2rem;
  }

  .learn-more-link {
    font-size: 22px;
  }

  .student-quiz-showcase {
    max-width: 350px;
    height: 350px;
  }

  .schoolcore-mission-section h2 {
    font-size: 2.25rem;
  }
}

/* Tablets (577px to 768px) */
@media (min-width: 577px) and (max-width: 768px) {
  .schoolcore-page-wrapper {
    padding: 1.5rem;
  }

  .exam-management-navigation {
    gap: 0.75rem;
    margin-bottom: 2.5rem;
  }

  .exam-nav-tab {
    padding: 0.7rem 1.3rem;
    font-size: 1rem;
  }

  .exam-results-hero-card {
    width: 90%;
    height: auto;
    min-height: 500px;
    padding: 2.5rem;
  }

  .exam-hero-content-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .exam-results-text-section h1 {
    font-size: 2.1rem;
  }

  .exam-results-text-section p {
    font-size: 1.2rem;
    margin-top: 30px;
  }

  .exam-cta-buttons {
    justify-content: center;
    margin-top: 50px;
    gap: 2rem;
  }

  .learn-more-link {
    font-size: 20px;
  }

  .student-quiz-showcase {
    max-width: 320px;
    height: 320px;
    margin: 0 auto;
  }

  .quiz-solve-badge {
    top: -15px;
    left: -25px;
    padding: 0.55rem 1.1rem;
    font-size: 0.85rem;
  }

  .results-storage-badge {
    bottom: -18px;
    right: -18px;
    padding: 0.7rem 0.9rem;
  }

  .schoolcore-mission-section h2 {
    font-size: 2.1rem;
  }

  .schoolcore-mission-section p {
    font-size: 1.05rem;
  }
}

/* Small mobile devices (480px to 576px) */
@media (min-width: 480px) and (max-width: 576px) {
  .schoolcore-page-wrapper {
    padding: 1.25rem;
  }

  .exam-management-navigation {
    gap: 0.5rem;
    margin-bottom: 2rem;
  }

  .exam-nav-tab {
    padding: 0.65rem 1.2rem;
    font-size: 0.95rem;
    flex: 1;
    min-width: 140px;
  }

  .exam-results-hero-card {
    width: 95%;
    height: auto;
    min-height: 450px;
    padding: 2rem;
    border-radius: 20px;
  }

  .exam-hero-content-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .exam-results-text-section h1 {
    font-size: 1.9rem;
    line-height: 1.3;
  }

  .exam-results-text-section p {
    font-size: 1.1rem;
    margin-top: 25px;
  }

  .exam-cta-buttons {
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
    gap: 1.5rem;
  }

  .demo-booking-button {
    padding: 0.8rem 1.8rem;
    font-size: 0.95rem;
  }

  .learn-more-link {
    font-size: 12px;
  }

  .student-quiz-showcase {
    max-width: 280px;
    height: 280px;
    margin: 0 auto;
  }

  .quiz-solve-badge {
    top: -12px;
    left: -20px;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }

  .results-storage-badge {
    bottom: -15px;
    right: -15px;
    padding: 0.65rem 0.85rem;
    font-size: 0.75rem;
  }

  .schoolcore-mission-section h2 {
    font-size: 1.9rem;
  }

  .schoolcore-mission-section p {
    font-size: 1rem;
  }
}

/* Very small mobile devices (less than 480px) */
@media (max-width: 479px) {
  .schoolcore-page-wrapper {
    padding: 1rem;
    height: auto;
    min-height: 100vh;
  }

  .exam-management-navigation {
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
  }

  .exam-nav-tab {
    width: 100%;
    max-width: 200px;
    justify-content: center;
    padding: 0.6rem 1rem;
    font-size: 0.7rem;
  }

  .exam-results-hero-card {
    width: 100%;
    height: auto;
    min-height: 400px;
    padding: 1.5rem;
    border-radius: 16px;
  }

  .exam-hero-content-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }

  .exam-results-text-section h1 {
    font-size: 1.2rem;
    line-height: 1.3;
    margin-bottom: 1rem;
  }

  .exam-results-text-section p {
    font-size: 0.8rem;
    line-height: 1.5;
    margin-top: 20px;
    margin-bottom: 1.5rem;
  }

  .exam-cta-buttons {
    flex-direction: column;
    align-items: center;
    margin-top: 30px;
    gap: 1rem;
  }

  .demo-booking-button {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    width: 50%;
    max-width: 200px;
    text-align: center;
  }

  .learn-more-link {
    font-size: 15px;
  }

  .student-quiz-showcase {
    max-width: 250px;
    height: 250px;
    margin: 0 auto;
  }

  .quiz-solve-badge {
    top: -10px;
    left: -40px;
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
  }

  .results-storage-badge {
    bottom: -20px;
    right: -40px;
    padding: 0.5rem 0.7rem;
    font-size: 0.7rem;
  }

  .results-badge-description {
    font-size: 0.59rem;
  }

  .schoolcore-mission-section {
    margin-top: 2rem;
  }

  .schoolcore-mission-section h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
  }

  .schoolcore-mission-section p {
    font-size: 0.9rem;
    line-height: 1.5;
    padding: 0 0.5rem;
  }
}

/* Performance optimizations */
.student-quiz-showcase,
.quiz-solve-badge,
.results-storage-badge {
  will-change: transform, opacity;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
