/* REDESIGNED DASHBOARD STYLES*/
html{
  scroll-behavior: smooth;
}
.dashboard-wrapper {
  padding: 10px 20px 60px 20px;
  max-width: 1300px;
  margin: 0 auto;
}

/* Dashboard Hero */
.dashboard-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background:
    radial-gradient(
      circle at left,
      rgba(147, 51, 234, 0.08) 0%,
      transparent 60%
    ),
    #111827;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 40px;
}

.hero-left .heading {
  font-size: 42px;
  font-weight: 700;
  color: #fff;
  margin-top: 8px;
  font-family: "Fraunces", serif;
}

.hero-left .heading .italic-serif {
  font-style: italic;
  color: #c084fc;
  font-weight: 400;
}

.hero-left .subheading {
  color: #9ca3af;
  font-size: 14px;
  margin-top: 8px;
  max-width: 550px;
}

.hero-right-metrics {
  display: flex;
  gap: 16px;
}

.metric-card-mini {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 24px;
  border-radius: 12px;
  text-align: center;
}

.metric-card-mini h3 {
  font-size: 22px;
  color: #f59e0b;
  font-family: "Fraunces", serif;
}

.metric-card-mini p {
  font-size: 11px;
  color: #9ca3af;
  margin-top: 2px;
  letter-spacing: 0.5px;
}

/* Section Containers */
.content-section-block {
  margin-bottom: 50px;
}

.section-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 12px;
}

.section-header-flex h2 {
  font-size: 24px;
  color: #fff;
  font-family: "Fraunces", serif;
}

.section-header-flex p {
  font-size: 13px;
  color: #9ca3af;
  margin-top: 2px;
}

.count-badge {
  font-size: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 12px;
  border-radius: 8px;
  color: #9ca3af;
  font-weight: 500;
}

/* Course Grid Elements */
.coursedivmain {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.course {
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 16px;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}

.course:hover {
  transform: translateY(-4px);
  border-color: rgba(147, 51, 234, 0.5);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.course-img-wrapper {
  height: 150px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 14px;
}

.courseimg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.course:hover .courseimg {
  transform: scale(1.03);
}

.course-link {
  text-decoration: none;
}

.cname {
  font-size: 18px;
  color: #fff;
  font-family: "Fraunces", serif;
  font-weight: 600;
}

.course-meta-desc {
  font-size: 12px;
  color: #9ca3af;
  margin: 6px 0 16px 0;
}

.course-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 12px;
  margin-top: auto;
}

.tag-pill {
  background: rgba(255, 255, 255, 0.04);
  color: #9ca3af;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 6px;
}

.explore-arrow {
  font-size: 13px;
  color: #c084fc;
  font-weight: 600;
}

/* Performance Graph Card */
.graph-container-card {
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 24px;
}

.graph-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.graph-header-row h3 {
  font-size: 18px;
  color: #fff;
  font-family: "Fraunces", serif;
}

.trend-indicator {
  font-size: 11px;
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.2);
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 600;
}

#graph {
  width: 100%;
  height: 400px;
}

/* Daily card */

/* Hero Container Split Grid */
.hero-layout-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  align-items: center;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 36px;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
}

/* Left Column Styling */
.welcome-heading {
  font-size: 45px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  margin: 1px 0 12px 0;
}

.hero-subtext {
  color: #94a3b8;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 460px;
}

/* Primary Button Styling */
.primary-actions-row {
  margin-bottom: 20px;
}

.btn-primary-glow {
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  color: #ffffff;
  padding: 12px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* Lower Filter Buttons (Only Courses & Performance) */
.filter-tags-row {
  display: flex;
  gap: 12px;
}

.filter-btn-pill {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.filter-btn-pill:hover {
  background: rgba(51, 65, 85, 0.9);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* Right Column Metrics Layout */
.hero-right-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.metrics-top-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.metric-card-mini {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.metric-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.metric-info h3 {
  margin: 0;
  font-size: 22px;
  color: #ffffff;
}

.metric-info p {
  margin: 0;
  font-size: 11px;
  color: #94a3b8;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Momentum Engine Card & Bars Layout */
.momentum-card {
  background: #1c2435; /* Matched to the slightly lighter blue-gray panel color */
  border-radius: 16px; /* Slightly softer corners matching the image */
  padding: 24px;
  color: #ffffff;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  max-width: 520px;
}

.momentum-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
}

.system-tag {
  font-size: 11px;
  letter-spacing: 1.5px;
  color: #94a3b8;
  font-weight: 700;
  text-transform: uppercase;
}

.momentum-header h2 {
  margin: 6px 0 0 0;
  font-size: 26px;
  font-weight: 700;
  font-family:
    "Georgia", "Times New Roman", serif; /* Serif font matching the image */
  letter-spacing: -0.5px;
}

.status-badge {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

.momentum-body {
  display: flex;
  align-items: center;
  gap: 40px; /* Increased gap to match the spacing in the image */
}

.weekly-section {
  width: 100%;
}

.week-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between; /* Spreads arrows to the edges of the bar chart */
  margin-bottom: 20px;
}

.week-title {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.week-title span {
  font-weight: 700;
  font-size: 16px;
}

.week-title small {
  font-size: 12px;
  color: #94a3b8;
}

/* Navigation Arrows (Cyan Background, White Arrow) */
.week-nav-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s ease;
  padding-bottom: 2px;
  background: #38bdf8;
  border: none;
  color: #ffffff; /* White arrow */
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.3); /* Subtle glow matching the active pill */
}

.week-nav-btn svg {
  position: relative;
}

#prevWeek svg {
  right: 1px;
}
#nextWeek svg {
  left: 1px;
}

.week-nav-btn:hover:not(:disabled) {
  transform: scale(1.05);
  background: #0ea5e9; /* Slightly darker blue on hover */
}

.week-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  box-shadow: none;
}

.weekly-bars-wrapper {
  width: 100%;
}

.week-slide {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.bar-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.pill-capsule {
  width: 24px;
  height: 75px;
  border-radius: 12px;
  background: rgba(
    255,
    255,
    255,
    0.05
  ); /* Very subtle transparent pill background */
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

/* The small cyan sliver at the bottom of the pill */
.pill-capsule::after {
  content: "";
  width: 100%;
  height: 5px;
  background: #38bdf8;
  border-radius: 0 0 12px 12px;
}

.pill-capsule.fill-active {
  background: linear-gradient(180deg, #38bdf8 0%, #0284c7 100%);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.3);
}

.pill-capsule.fill-active::after {
  display: none;
}

.day-label {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 500;
}

/* Radial Goal Circle */
.radial-progress {
  width: 115px;
  height: 115px;
  border-radius: 50%;
  background: conic-gradient(
    #38bdf8 calc(var(--percentage) * 1%),
    rgba(255, 255, 255, 0.05) 0deg /* Soft dark track */
  );
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.inner-circle {
  width: 95px; /* Adjusting this controls the stroke thickness */
  height: 95px;
  border-radius: 50%;
  background: #1c2435; /* Must match .momentum-card background exactly */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.percentage-val {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 2px;
}

.goal-label {
  font-size: 7px;
  color: #64748b;
  font-weight: 700;
  letter-spacing: 0.3px;
}

/* ================================
   TABLET + MOBILE RESPONSIVE
   ================================ */
/* ================================
   TABLET + MOBILE RESPONSIVE
   ================================ */
@media screen and (max-width: 900px) {
  .hero-layout-grid {
    grid-template-columns: 1fr !important;
    display: grid !important;
    gap: 20px;
  }

  .hero-left-column,
  .hero-right-column {
    width: 100%;
    min-width: 0;
  }

  .metrics-top-row {
    width: 100%;
  }

  .metric-card-mini {
    flex: 1;
    min-width: 0;
  }

  .momentum-card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 16px;
    border-radius: 16px;
    overflow: hidden;
  }

  .momentum-header {
    margin-bottom: 20px;
    gap: 10px;
  }

  .system-tag {
    font-size: 9px;
    letter-spacing: 1px;
  }

  .momentum-header h2 {
    font-size: 21px;
    margin-top: 5px;
  }

  .status-badge {
    padding: 5px 10px;
    font-size: 11px;
    white-space: nowrap;
  }

  .momentum-body {
    display: flex;
    flex-direction: row; /* keeps it normal, not tall */
    align-items: center;
    gap: 20px;
  }

  .radial-progress {
    width: 90px;
    height: 90px;
    min-width: 90px;
  }

  .inner-circle {
    width: 74px;
    height: 74px;
  }

  .percentage-val {
    font-size: 19px;
  }

  .weekly-section {
    flex: 1;
    min-width: 0;
  }

  .week-navigation {
    margin-bottom: 12px;
  }

  .week-title span {
    font-size: 13px;
  }

  .week-title small {
    font-size: 10px;
  }

  .week-slide {
    gap: 5px;
  }

  .pill-capsule {
    width: 15px;
    height: 55px;
  }

  .day-label {
    font-size: 9px;
  }

  .goal-label {
    font-size: 7px;
  }

  .weekly-section {
    width: 100%;
    min-width: 0;
  }

  .week-navigation {
    width: 100%;
    margin-bottom: 14px;
    gap: 8px;
  }

  .week-nav-btn {
    width: 30px;
    height: 30px;
    min-width: 30px;
  }

  .week-title {
    flex: 1;
  }

  .week-title span {
    font-size: 14px;
  }

  .week-title small {
    font-size: 10px;
  }

  .week-slide {
    width: 100%;
    gap: 5px;
  }

  .bar-column {
    min-width: 0;
    gap: 7px;
  }

  .pill-capsule {
    width: 18px;
    height: 58px;
    border-radius: 10px;
  }

  .pill-capsule::after {
    height: 4px;
    border-radius: 0 0 10px 10px;
  }

  .day-label {
    font-size: 10px;
  }
}

@media screen and (max-width: 480px) {
  .hero-layout-grid {
    gap: 16px;
  }

  .momentum-card {
    padding: 13px;
    border-radius: 14px;
  }

  .momentum-header {
    margin-bottom: 16px;
  }

  .system-tag {
    font-size: 7px;
    letter-spacing: 0.8px;
  }

  .momentum-header h2 {
    font-size: 18px;
  }

  .status-badge {
    font-size: 9px;
    padding: 4px 8px;
  }

  .momentum-body {
    gap: 17px;
  }

  .radial-progress {
    width: 92px;
    height: 92px;
    min-width: 92px;
    min-height: 92px;
  }

  .inner-circle {
    width: 74px;
    height: 74px;
  }

  .percentage-val {
    font-size: 19px;
  }

  .goal-label {
    font-size: 6px;
  }

  .week-navigation {
    margin-bottom: 12px;
  }
  .week-nav-btn {
    width: 28px;
    height: 28px;
    min-width: 28px;
  }
  .week-title span {
    font-size: 12px;
  }
  .week-title small {
    font-size: 9px;
  }
  .week-slide {
    gap: 3px;
  }

  .bar-column {
    gap: 5px;
  }

  .pill-capsule {
    width: 15px;
    height: 48px;
    border-radius: 9px;
  }
  .pill-capsule::after {
    height: 4px;
  }
  .day-label {
    font-size: 8px;
  }
}
@media screen and (max-width: 360px) {
  .momentum-card {
    padding: 11px;
  }

  .momentum-header h2 {
    font-size: 17px;
  }

  .radial-progress {
    width: 85px;
    height: 85px;
    min-width: 85px;
    min-height: 85px;
  }

  .inner-circle {
    width: 68px;
    height: 68px;
  }

  .percentage-val {
    font-size: 17px;
  }

  .pill-capsule {
    width: 13px;
    height: 44px;
  }

  .day-label {
    font-size: 7px;
  }
}

/* ==========================================
   SPECIFIC COURSE PAGE STYLES
   ========================================== */

.course-detail-wrapper {
  max-width: 1200px;
  margin: 20px auto;
  padding: 20px;
}

.back-nav-row {
  margin-bottom: 25px;
}

.back-link {
  color: #9ca3af;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.back-link:hover {
  color: #fff;
}
.simulation-note {
  margin-top: 24px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.note-header {
  display: flex;
  align-items: center;
  gap: 6px; /* Spacing between the info icon and the title */
}

.note-icon {
  color: #94a3b8;
  font-size: 16px;
  line-height: 1;
}

.note-header strong {
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
}

.simulation-note p {
  color: #f1f5f9;
  font-size: 14px;
  margin: 0;
  line-height: 1.4;
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
}
/* Split Section Layout */
.coursepage-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.details-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.details-side h1 {
  font-size: 42px;
  font-family: "Fraunces", serif;
  color: #fff;
  margin: 12px 0 20px 0;
  line-height: 1.1;
}

.course-long-desc {
  color: #9ca3af;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 30px;
}

/* Track Feature Badges */
.track-features-box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 25px;
}

.feature-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 12px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
}

.feature-item strong {
  font-size: 14px;
  color: #fff;
}

.feature-item span {
  font-size: 11px;
  color: #9ca3af;
  margin-top: 2px;
}

/* Right Panel Form Section */
.side-action-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 24px;
  border-radius: 16px;
}

.course-img-card {
  width: 100%;
  height: 220px;
  border-radius: 12px;
  overflow: hidden;
}

.courseimg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Difficulty dropdown overrides */
.difficulty-group label {
  font-size: 13px;
  color: #9ca3af;
  font-weight: 500;
  display: block;
  margin-bottom: 8px;
}

.difficulty-group select {
  width: 100%;
  height: 48px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0 16px;
  color: #fff;
  font-size: 14px;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
}

.difficulty-group select:focus {
  background-color: #111827;
  color: #fff;
  border-color: #9333ea;
}

/* Action button override */
.btn-purple-glow-full {
  width: 100%;
  background: #9333ea;
  color: #fff;
  border: none;
  padding: 15px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(147, 51, 234, 0.3);
  transition: all 0.2s;
  margin-top: 10px;
  text-decoration: none;
}

.btn-purple-glow-full:hover {
  background: #a855f7;
  transform: translateY(-2px);
}

/* Responsive adjustments */
@media screen and (max-width: 900px) {
  .coursepage-split {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  .track-features-box {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   REDESIGNED QUIZ INTERFACE STYLES
   ========================================== */

.quiz-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  padding: 20px;
}

.quiz-container {
  width: 100%;
  max-width: 750px;
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

/*Warning*/
.warning-text {
  color: #ff6b6b;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  font-size: 14px;
  font-weight: 600;
  margin-top: 20px;
  letter-spacing: 0.3px;
  line-height: 1.5;
}
/* Prevent text selection, highlighting, and copying across the quiz container */
.quiz-wrapper {
  -webkit-user-select: none; /* Safari */
  -moz-user-select: none; /* Firefox */
  -ms-user-select: none; /* IE10+/Edge */
  user-select: none; /* Standard */
}

/* Allow typing and selection inside the code editor textarea */
.code-editor-textarea {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
  width: 100%;
  min-height: 250px;
  background-color: #0b0f19;
  color: #38bdf8; /* Coding accent color */
  font-family: "Fira Code", "Courier New", Courier, monospace;
  font-size: 14px;
  line-height: 1.6;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  outline: none;
  resize: vertical;
  tab-size: 4;
}

.code-editor-textarea:focus {
  border-color: #9333ea;
  box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.15);
}

/* Subtle glow behind card */
.quiz-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #9333ea, #f59e0b);
}
/* ==========================================
   QUIZ QUESTION BOX CONTRAST FIX
   ========================================== */

.question-box {
  background: #1f2937; /* Solid dark background container */
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px;
  border-radius: 14px;
  margin-bottom: 25px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.question-box h3,
.question-box p,
.question-text {
  color: #ffffff !important; /* Forces text to bright white */
  font-size: 20px;
  font-family: "Fraunces", serif;
  line-height: 1.4;
  margin: 0;
}

/* Header & Progress Info */
.quiz-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.quiz-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(147, 51, 234, 0.1);
  color: #c084fc;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  border: 1px solid rgba(147, 51, 234, 0.2);
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background: #c084fc;
  border-radius: 50%;
  box-shadow: 0 0 8px #c084fc;
}

.progress-indicator {
  font-size: 13px;
  color: #9ca3af;
  font-weight: 500;
}

.progress-indicator span {
  color: #fff;
  font-weight: 600;
}

/* Progress Bar Track */
.quiz-progress-bar-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  margin-bottom: 30px;
  overflow: hidden;
}

.quiz-progress-fill {
  height: 100%;
  background: #f59e0b;
  border-radius: 3px;
  transition: width 0.4s ease;
}

/* Question Box */
.question-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 24px;
  border-radius: 14px;
  margin-bottom: 25px;
}

.question-box h3 {
  font-size: 20px;
  font-family: "Fraunces", serif;
  color: #fff;
  line-height: 1.4;
}

/* Answer Box Textarea */
.answer-box textarea {
  width: 100%;
  height: 160px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px;
  color: #fff;
  font-size: 15px;
  font-family: "Outfit", sans-serif;
  outline: none;
  resize: vertical;
  transition:
    border-color 0.2s,
    background 0.2s;
}

.answer-box textarea:focus {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.02);
}

.answer-box textarea::placeholder {
  color: #6b7280;
}

/* MCQ Radio Group Option Cards */
.mcq-options-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mcq-option-label {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.2s ease;
}

.mcq-option-label:hover {
  background: rgba(245, 158, 11, 0.05);
  border-color: rgba(245, 158, 11, 0.3);
  transform: translateY(-2px);
}

.custom-radio {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  outline: none;
  transition: all 0.2s;
  display: grid;
  place-content: center;
  cursor: pointer;
}

.custom-radio::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.2s ease;
  background-color: #f59e0b;
}

.custom-radio:checked {
  border-color: #f59e0b;
}

.custom-radio:checked::before {
  transform: scale(1);
}

.option-text {
  color: #f3f4f6;
  font-size: 15px;
  font-weight: 400;
}

/* Quiz Actions Button */
.quiz-actions {
  margin-top: 30px;
  display: flex;
  justify-content: flex-end;
}

.btn-submit-answer {
  background: #f59e0b;
  color: #0b0f19;
  border: none;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.1s;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-submit-answer:hover {
  background: #d97706;
  transform: translateY(-2px);
}
/* ==========================================
   CHOOSE INTERVIEW TYPE STYLES
   ========================================== */

.quiz-type-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 75vh;
  padding: 20px;
}

.quiz-type-container {
  width: 100%;
  max-width: 900px;
  text-align: center;
}

.quiz-type-header {
  margin-bottom: 40px;
}

.quiz-type-header h1 {
  font-size: 40px;
  font-family: "Fraunces", serif;
  color: #fff;
  margin: 12px 0;
}

.difficulty-badge-text {
  font-size: 14px;
  color: #9ca3af;
}

.highlight-level {
  color: #f59e0b;
  font-weight: 600;
  background: rgba(245, 158, 11, 0.1);
  padding: 2px 10px;
  border-radius: 6px;
  border: 1px solid rgba(245, 158, 11, 0.2);
}
.vocal-icon {
    background: linear-gradient(135deg, #6d5dfc, #a855f7);
    color: #fff;
}

.quiz-type-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
    align-items: stretch;
}

.quiz-type-form {
    display: flex;
    width: 100%;
    min-width: 0;
    margin: 0;
}

.quiz-type-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    width: 100%;
    height: 100%;
    min-width: 0;
    padding: 32px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.quiz-type-card:hover {
    transform: translateY(-6px);
    border-color: #f59e0b;
    box-shadow: 0 15px 35px rgba(245, 158, 11, 0.15);
    background: #162032;
}

.quiz-type-form:nth-child(3) {
    grid-column: 1 / -1;
}

.quiz-type-form:nth-child(3) .quiz-type-card {
    min-height: 170px;
}

.card-icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    margin-bottom: 20px;
    flex-shrink: 0;
    font-size: 24px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.card-content {
    width: 100%;
    min-width: 0;
}

.card-content h2 {
    margin-bottom: 8px;
    color: #fff;
    font-family: "Fraunces", serif;
    font-size: 22px;
}

.card-content p {
    margin-bottom: 24px;
    color: #9ca3af;
    font-size: 14px;
    line-height: 1.5;
}

.card-action-indicator {
    margin-top: auto;
    font-size: 13px;
    font-weight: 600;
    color: #f59e0b;
    transition: transform 0.2s;
}

.quiz-type-card:hover .card-action-indicator {
    transform: translateX(4px);
}

@media screen and (max-width: 768px) {
    .quiz-type-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .quiz-type-card {
        padding: 22px;
        border-radius: 16px;
    }

    .quiz-type-header h1 {
        font-size: 32px;
    }

    .card-content h2 {
        font-size: 19px;
    }

    .quiz-type-form:nth-child(3) .quiz-type-card {
        min-height: 150px;
    }
}

@media screen and (max-width: 600px) {
    .quiz-type-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .quiz-type-card {
        padding: 16px;
        border-radius: 14px;
    }

    .card-icon-box {
        width: 42px;
        height: 42px;
        margin-bottom: 14px;
        font-size: 21px;
    }

    .card-content h2 {
        font-size: 17px;
        line-height: 1.35;
    }

    .card-content p {
        font-size: 12px;
        line-height: 1.5;
        margin-bottom: 18px;
    }

    .card-action-indicator {
        font-size: 11px;
    }

    .quiz-type-form:nth-child(3) {
        grid-column: 1 / -1;
    }

    .quiz-type-form:nth-child(3) .quiz-type-card {
        min-height: 0;
        padding: 20px;
    }

    .quiz-type-form:nth-child(3) .card-content p {
        margin-bottom: 14px;
    }
}

@media screen and (max-width: 380px) {
    .quiz-type-cards {
        gap: 9px;
    }

    .quiz-type-card {
        padding: 12px;
    }

    .card-content h2 {
        font-size: 15px;
    }

    .card-content p {
        font-size: 11px;
    }

    .quiz-type-header h1 {
        font-size: 26px;
    }
}
/* ==========================================
PERFORMANCE DASHBOARD REDESIGN STYLES
   ========================================== */

/*Search*/

/* Course Search Bar & Floating Dropdown Styling */
.course-search-wrapper {
  position: relative;
  width: 280px;
}

.course-search-container {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.course-search-container input {
  width: 100%;
  background-color: #111827;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 10px 16px 10px 40px;
  color: #fff;
  font-size: 14px;
  font-family: "Outfit", sans-serif;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.course-search-container input:focus {
  border-color: rgba(192, 132, 252, 0.5);
  box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.15);
}

.course-search-container .search-icon {
  position: absolute;
  left: 14px;
  color: #9ca3af;
  pointer-events: none;
}

/* Floating Results Panel */
.search-dropdown-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  z-index: 100;
  max-height: 240px;
  overflow-y: auto;
  padding: 6px 0;
}

.search-result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  color: #d1d5db;
  font-size: 14px;
  text-decoration: none;
  transition:
    background 0.15s,
    color 0.15s;
}

.search-result-item:hover {
  background-color: rgba(147, 51, 234, 0.15);
  color: #fff;
}

.result-action {
  font-size: 12px;
  color: #c084fc;
  font-weight: 600;
}

@media (max-width: 768px) {
  .course-search-wrapper {
    width: 100%;
  }
}

/*Dashboard*/
.dashboard-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}

.dashboard-header {
  text-align: center;
  margin-bottom: 35px;
}

.dashboard-header h1 {
  font-size: 38px;
  font-family: "Fraunces", serif;
  color: #fff;
  margin: 10px 0 6px 0;
}

.dashboard-header p {
  color: #9ca3af;
  font-size: 15px;
}

/* Metrics Summary Cards Grid */
.performance-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.metric-card-box {
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.metric-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.metric-info h3 {
  font-size: 13px;
  color: #9ca3af;
  font-weight: 500;
  font-family: "Outfit", sans-serif;
}

.metric-value {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  font-family: "Fraunces", serif;
  margin-top: 2px;
}

/* Graph Container */
.graph-card-container {
  background: #111827 !important;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 30px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  margin-bottom: 25px;
  margin-top: 25px;
}

.graph-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.graph-header-row h2 {
  font-size: 20px;
  font-family: "Fraunces", serif;
  color: #fff;
}

#graph {
  width: 100%;
  height: 420px;
}

/* Scrollable Container */
.graph-scroll-wrapper {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch; /* Smooth touch scrolling on mobile */
}

/* Custom Dark Theme Scrollbar */
.graph-scroll-wrapper::-webkit-scrollbar {
  height: 6px;
}

.graph-scroll-wrapper::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 4px;
}

.graph-scroll-wrapper::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.3);
  border-radius: 4px;
}

.graph-scroll-wrapper::-webkit-scrollbar-thumb:hover {
  background: rgba(56, 189, 248, 0.6);
}

/* Fix Graph Minimum Width so points don't crush together */
#score-trend-graph {
  min-width: 750px; /* Force minimum width to enable scrolling on smaller viewports */
  height: 320px;
}

/* Insights Card Styling */
.insight-card {
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 18px;
  line-height: 1.6;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.insight-card h3 {
  font-size: 18px;
  font-family: "Fraunces", serif;
  color: #fff;
  margin-bottom: 10px;
}

.insight-card p {
  color: #9ca3af;
  font-size: 14px;
  margin-bottom: 16px;
}

.insight-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.insight-list li {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  color: #e5e7eb;
  display: flex;
  align-items: center;
  gap: 10px;
}
/*Pagination*/
/* Container Layout */
.course-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 2.5rem 0;
  font-family: inherit;
  user-select: none;
}

/* Page Numbers Wrapper */
#coursePageNumbers {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Shared Styles for Arrows & Page Buttons */
.course-pagination button,
#coursePageNumbers button,
#coursePageNumbers .page-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0f1420; /* Matches your dark card background */
  color: #94a3b8;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease-in-out;
  outline: none;
}

/* Hover State (Matches card hover effect) */
.course-pagination button:hover:not(:disabled),
#coursePageNumbers button:hover:not(.active),
#coursePageNumbers .page-num:hover:not(.active) {
  background: #141b2d;
  color: #ffffff;
  border-color: rgba(168, 85, 247, 0.4); /* Subtle purple border accent */
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.25); /* Purple glow */
  transform: translateY(-2px);
}

/* Active Page State */
#coursePageNumbers .active,
#coursePageNumbers button.active {
  background: linear-gradient(
    135deg,
    #a855f7,
    #6366f1
  ); /* Neon purple/indigo gradient */
  color: #ffffff;
  border: 1px solid transparent;
  font-weight: 600;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.5); /* Glowing active aura */
}

/* Disabled State for Prev/Next Arrows */
.course-pagination button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  background: #0b0e17;
  border-color: rgba(255, 255, 255, 0.03);
  box-shadow: none;
  transform: none;
}

/* Ellipsis (...) Styling */
#coursePageNumbers .dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 42px;
  color: #64748b;
  font-weight: 600;
}
.course-item.course-hidden {
  display: none !important;
}
.coursedivmain .course-item.course-hidden {
  display: none !important;
}
.course-hidden {
  display: none !important;
}
/* ==========================================
   PROFILE PAGE STYLES
   ========================================== */

.profile-container-wrapper {
  max-width: 750px;
  margin: 20px auto;
}

.profile-card-box {
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.profile-banner-row {
  display: flex;
  align-items: center;
  gap: 20px;
}

.profile-avatar-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, #9333ea, #f59e0b);
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(147, 51, 234, 0.3);
  font-family: "Fraunces", serif;
}

.profile-banner-info h2 {
  font-size: 24px;
  font-family: "Fraunces", serif;
  color: #fff;
}

.profile-username-tag {
  color: #9ca3af;
  font-size: 14px;
  margin-top: 2px;
}

.profile-status-badge {
  margin-left: auto;
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.2);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.profile-divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 30px 0;
}

.profile-details-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.profile-detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 16px 20px;
  border-radius: 12px;
}

.detail-label {
  font-size: 13px;
  color: #9ca3af;
  font-weight: 500;
}

.detail-value {
  font-size: 15px;
  color: #fff;
  font-weight: 600;
}

.profile-actions-row {
  display: flex;
  justify-content: flex-end;
}

.btn-danger-outline {
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-danger-outline:hover {
  background: rgba(239, 68, 68, 0.2);
  transform: translateY(-1px);
}
/* ================================
   CHANGE EMAIL
   ================================ */

.change-email-section {
  width: 100%;
}

/* Change Email Button */

.change-email-button {
  padding: 10px 18px;

  background: transparent;

  border: 1px solid #a855f7;
  border-radius: 8px;

  color: #c084fc;

  font-size: 14px;
  font-weight: 500;

  cursor: pointer;

  transition: 0.2s ease;
}

.change-email-button:hover {
  background: rgba(168, 85, 247, 0.1);
}

/* Change Email Box */

.change-email-box {
  margin-top: 18px;

  padding: 22px;

  background: #0f172a;

  border: 1px solid #334155;
  border-radius: 10px;
}

.change-email-box h3 {
  margin: 0 0 8px;

  color: #f8fafc;

  font-size: 18px;
}

.change-email-box p {
  margin: 0 0 20px;

  color: #94a3b8;

  font-size: 13px;
  line-height: 1.5;
}

/* Label */

.change-email-box label {
  display: block;

  margin-bottom: 7px;

  color: #cbd5e1;

  font-size: 13px;
}

/* Input */

.change-email-box input {
  width: 100%;
  height: 46px;

  padding: 0 13px;

  box-sizing: border-box;

  background: #070b14;

  border: 1px solid #334155;
  border-radius: 8px;

  outline: none;

  color: #ffffff;

  font-size: 14px;
}

.change-email-box input::placeholder {
  color: #64748b;
}

.change-email-box input:focus {
  border-color: #a855f7;

  box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.1);
}

/* Buttons */

.change-email-buttons {
  display: flex;

  gap: 10px;

  margin-top: 15px;
}

.send-email-button {
  padding: 10px 16px;

  background: #a855f7;

  border: none;
  border-radius: 8px;

  color: #ffffff;

  font-size: 13px;
  font-weight: 600;

  cursor: pointer;
}

.send-email-button:hover {
  background: #9333ea;
}

.cancel-email-button {
  padding: 10px 16px;

  background: transparent;

  border: 1px solid #334155;
  border-radius: 8px;

  color: #94a3b8;

  font-size: 13px;

  cursor: pointer;
}

.cancel-email-button:hover {
  color: #ffffff;
  border-color: #64748b;
}

/* Flash Message */

.profile-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-bottom: 18px;

  padding: 12px 15px;

  border-radius: 8px;

  font-size: 13px;

  background: rgba(255, 255, 255, 0.05);

  border: 1px solid #334155;
}

.profile-alert button {
  background: none;

  border: none;

  color: inherit;

  font-size: 18px;

  cursor: pointer;
}

.alert-success {
  color: #86efac;
}

.alert-danger {
  color: #fca5a5;
}

.alert-warning {
  color: #fde047;
}

.alert-info {
  color: #93c5fd;
}

/* Mobile */

@media (max-width: 600px) {
  .change-email-box {
    padding: 18px;
  }

  .change-email-buttons {
    flex-direction: column;
  }

  .send-email-button,
  .cancel-email-button {
    width: 100%;
  }
}
/* ==========================================
   QUIZ RESULT PAGE STYLES
   ========================================== */

.result-page-container {
  max-width: 650px;
  margin: 20px auto;
}

.result-card-box {
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Score Display Block */
.score-display-block {
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 16px;
}

.score-label {
  font-size: 13px;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.score-number-row {
  margin: 10px 0;
}

.score-highlight {
  font-size: 56px;
  font-weight: 700;
  color: #f59e0b;
  font-family: "Fraunces", serif;
}

.score-total {
  font-size: 28px;
  color: #6b7280;
  font-family: "Fraunces", serif;
}

.percentage-pill {
  display: inline-block;
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.2);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 650;
  margin-top: 5px;
}

/* Feedback Banner Styles */
.feedback-banner-box {
  width: 100%;
}

.feedback-content {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border-radius: 14px;
  border: 1px solid transparent;
}

.feedback-emoji {
  font-size: 32px;
}

.feedback-content h3 {
  font-size: 16px;
  font-family: "Fraunces", serif;
  color: #fff;
  margin-bottom: 2px;
}

.feedback-content p {
  font-size: 13px;
  color: #9ca3af;
}

.excellent-box {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.2);
}

.average-box {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.2);
}

.poor-box {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.2);
}
/* Card container status styling */
.review-card-item {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 10px;
  margin-top: 10px;
  transition: all 0.2s ease;
}

/* Correct Answer Card (Green Theme) */
.review-card-item.card-correct {
  border: 1px solid rgba(34, 197, 94, 0.3);
  background: rgba(34, 197, 94, 0.02);
}

.review-card-item.card-correct:hover {
  border-color: rgba(34, 197, 94, 0.5);
  box-shadow: 0 4px 20px rgba(34, 197, 94, 0.08);
}

/* Incorrect Answer Card (Red Theme) */
.review-card-item.card-incorrect {
  border: 1px solid rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.02);
}

.review-card-item.card-incorrect:hover {
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.08);
}
.review-user-answer .text-success-custom,
.review-user-answer .text-danger-custom {
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
}
/* Action Buttons Grid */
.result-actions-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.btn-purple-glow-full {
  width: 100%;
  background: #9333ea;
  color: #fff;
  border: none;
  padding: 15px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(147, 51, 234, 0.3);
  transition: all 0.2s;
  text-align: center;
}

.btn-purple-glow-full:hover {
  background: #a855f7;
  transform: translateY(-2px);
}

.btn-dark-outline-full {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 15px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  transition: background 0.2s;
  display: block;
  text-align: center;
  margin-bottom: 10px;
}

.btn-dark-outline-full:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* =========================================================
   SOLVED QUESTIONS
   Question History Only
   ========================================================= */

.solved-history-section {
  width: 100%;
  margin-top: 35px;
}

/* Section title */

.solved-history-title {
  margin: 0 0 18px 0;

  color: #ffffff;

  font-size: 20px;
  font-weight: 700;
}

/* Question list */

.solved-question-list {
  width: 100%;

  display: flex;
  flex-direction: column;

  gap: 18px;
}

/* =========================================================
   QUESTION CARD
   ========================================================= */

.solved-question-card {
  width: 100%;

  padding: 20px;

  box-sizing: border-box;

  border-radius: 14px;

  background: #151927;

  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* =========================================================
   QUESTION HEADER
   ========================================================= */

.solved-question-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 18px;
}

.solved-question-title {
  flex: 1;
  margin: 0;
  color: #ffffff;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 700;
}

/* =========================================================
   SCORE
   ========================================================= */

.solved-score {
  flex-shrink: 0;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.solved-score-good {
  color: #5ee58a;
  background: rgba(46, 204, 113, 0.1);
  border: 1px solid rgba(46, 204, 113, 0.25);
}

.solved-score-low {
  color: #ff7777;
  background: rgba(255, 80, 80, 0.1);
  border: 1px solid rgba(255, 80, 80, 0.25);
}

/* =========================================================
   ANSWER BOXES
   ========================================================= */

.solved-answer-box {
  width: 100%;
  padding: 15px;
  margin-bottom: 12px;
  box-sizing: border-box;
  border-radius: 10px;
  display: block;
}

.solved-user-box {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.solved-correct-box {
  background: rgba(255, 80, 80, 0.045);
  border: 1px solid rgba(255, 80, 80, 0.16);
}

.solved-feedback-box {
  background: rgba(139, 92, 246, 0.055);
  border: 1px solid rgba(139, 92, 246, 0.16);
}

/* =========================================================
   LABELS
   ========================================================= */

.solved-label {
  display: block;
  width: 100%;
  margin-bottom: 8px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.solved-correct-box .solved-label {
  color: #ff7777;
}

/* =========================================================
   ANSWER TEXT
   ========================================================= */

.solved-answer-text {
  width: 100%;

  margin: 0;
  padding: 0;

  color: #d5d7df;

  font-size: 14px;

  line-height: 1.7;

  text-align: left;

  white-space: pre-wrap;

  overflow-wrap: anywhere;

  word-break: break-word;
}

/* =========================================================
   FEEDBACK TEXT
   ========================================================= */

.solved-feedback-text {
  width: 100%;

  color: #d5d7df;

  font-size: 14px;

  line-height: 1.7;

  text-align: left;

  white-space: pre-wrap;

  overflow-wrap: anywhere;

  word-break: break-word;
}

/* =========================================================
   DETAILS
   ========================================================= */

.solved-details {
  width: 100%;

  display: flex;

  flex-wrap: wrap;

  gap: 8px;

  margin-top: 5px;

  padding-top: 14px;

  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.solved-detail {
  display: inline-flex;

  align-items: center;

  padding: 6px 10px;

  border-radius: 7px;

  background: rgba(255, 255, 255, 0.045);

  border: 1px solid rgba(255, 255, 255, 0.07);

  color: #aeb1bd;

  font-size: 11px;

  line-height: 1.3;
}

/* =========================================================
   EMPTY STATE
   ========================================================= */

.solved-empty {
  width: 100%;

  padding: 45px 20px;

  box-sizing: border-box;

  text-align: center;

  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.solved-empty h3 {
  margin: 0 0 8px;

  color: #ffffff;

  font-size: 20px;
}

.solved-empty p {
  margin: 0;

  color: #85899a;

  font-size: 14px;
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {
  .solved-question-card {
    padding: 15px;
  }

  .solved-question-header {
    flex-direction: column;

    gap: 10px;
  }

  .solved-score {
    align-self: flex-start;
  }

  .solved-answer-box {
    padding: 13px;
  }

  .solved-details {
    flex-direction: column;

    align-items: flex-start;
  }
}
/*Homepage*/
* {
  box-sizing: border-box;
}
@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,600;0,9..144,700;1,9..144,400&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap");

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

body {
  font-family: "Outfit", sans-serif;
  background-color: #0b0f19;
  color: #f3f4f6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
.heading,
.cname {
  font-family: "Fraunces", serif;
}
/* TOP NAVBAR */
.top-navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 40px;
  background: #090c15;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* CONTAINER NAV MENU BAR */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #111523; /* Dark outer container pill */
  padding: 5px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* INACTIVE LINKS */
.nav-menu a {
  text-decoration: none;
  color: #71778d;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 20px;
  border-radius: 10px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

/* HOVER EFFECT */
.nav-menu a:hover {
  color: #a0a7c4;
}

/* ACTIVE LINK BOX - MOVES TO ACTIVE TAB */
.nav-menu a.active {
  color: #ffffff;
  font-weight: 600;
  background: #1c1d33; /* Dark active highlight background */
  border: 1px solid #4f3b78; /* Subtle glowing purple border */
  box-shadow: 0 0 10px rgba(124, 77, 255, 0.15);
}
/* INACTIVE LINKS (Desktop) */
.nav-menu a {
  display: flex;
  align-items: center;
  gap: 8px; /* Adds space between the icon and text */
  text-decoration: none;
  color: #71778d;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 20px;
  border-radius: 10px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

/* PROFILE CONTAINER */
a[href="/profile"] {
  text-decoration: none;
}

.profile-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #111523;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 5px 14px 5px 5px;
  border-radius: 30px;
  transition: all 0.2s ease;
}

.avatar-circle {
  background: #a855f7;
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

.profile-name {
  font-size: 13px;
  font-weight: 500;
  color: #fff;
}

.pro-badge {
  background: #f59e0b;
  width: 14px;
  height: 4px;
  border-radius: 2px;
}

/* PROFILE ACTIVE STATE */
.profile-pill.active,
a[href="/profile"]:hover .profile-pill {
  background: #1c1d33;
  border-color: #4f3b78;
  box-shadow: 0 0 10px rgba(124, 77, 255, 0.15);
}
.mobile-top-header,
.mobile-bottom-nav {
  display: none;
}

/* MOBILE VIEW */
@media (max-width: 768px) {
  .user-logged-in .top-navbar {
    display: none !important;
  }
  body {
    padding-bottom: 80px;
  }
  .mobile-top-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .mobile-logo-link img {
    height: 70px;
    object-fit: contain;
  }

  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    background: #111523;
    padding: 16px 6px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    z-index: 1000;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.4);
  }
  .mobile-bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    color: #71778d;
    font-size: 10px;
    font-weight: 300;
    flex: 1;
    padding: 12px 5px;
    border-radius: 16px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
  }

  .mobile-bottom-nav a i {
    font-size: 22px;
    gap: 4px;
  }
  .mobile-bottom-nav a.active {
    color: #ffffff;
    font-weight: 300;
    background: #1c1d33;
    border: 1px solid #4f3b78;
    box-shadow: 0 0 10px rgba(124, 77, 255, 0.15);
  }
  .mobile-bottom-nav a.active i {
    color: #ffffff;
  }
  .mobile-bottom-nav .avatar-circle {
    background: #a855f7;
    color: #ffffff;
    width: 22px;
    height: 22px;
    border-radius: 30%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    flex-shrink: 0;
  }

  .mobile-bottom-nav a.active .avatar-circle {
    background: #ffffff;
    color: #a855f7;
  }
}
/* HERO SPLIT SECTION */
.hero-content-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  min-height: 70vh;
  padding: 40px 40px 60px 40px;
  background:
    radial-gradient(
      circle at left,
      rgba(168, 85, 247, 0.07) 0%,
      transparent 60%
    ),
    #0b0f19;
  position: relative;
  overflow: hidden;
}

.hero-text-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  width: fit-content;
  margin-bottom: 24px;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px #22c55e;
}

.heading {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.05;
  color: #ffffff;
  letter-spacing: -1.5px;
}

.heading .italic-serif {
  font-style: italic;
  color: #c084fc;
  font-weight: 400;
}

.subheading {
  color: #8b8699;
  font-size: 15px;
  max-width: 480px;
  line-height: 1.6;
  margin: 20px 0 30px 0;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
}

.btn-purple-glow {
  background: #9333ea;
  color: #ffffff;
  border: none;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 0 25px rgba(147, 51, 234, 0.4);
  transition: all 0.2s;
}

.btn-purple-glow:hover {
  background: #a855f7;
  transform: translateY(-2px);
}

.btn-dark-outline {
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 14px 24px;
  border-radius: 10px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-dark-outline:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* STATS ROW */
.hero-stats-row {
  display: flex;
  gap: 40px;
}

.stat-item h2 {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  font-family: "Fraunces", serif;
}

.stat-item p {
  font-size: 11px;
  color: #6b7280;
  letter-spacing: 1px;
  margin-top: 2px;
}

/* RIGHT IMAGE SIDE */
.hero-image-side {
  background-image: url("static/images/interview-hero.jpg"); /* fallback or placeholder */
  background-size: cover;
  background-position: center;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-height: 400px;
  box-shadow: -20px 20px 50px rgba(0, 0, 0, 0.5);
}
/* =========================
   MOBILE HERO RESPONSIVE
   ========================= */

@media (max-width: 768px) {
  .hero-layout-grid {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 20px 15px;
    width: 100%;
    box-sizing: border-box;
  }

  /* LEFT COLUMN */
  .hero-left-column {
    width: 100%;
    text-align: left;
  }

  .live-pill {
    font-size: 10px;
    padding: 6px 10px;
    letter-spacing: 0.5px;
  }

  .pulse-dot {
    width: 6px;
    height: 6px;
  }

  .welcome-heading {
    font-size: 42px;
    line-height: 1.3;
    margin: 14px 10px 12px;
    text-align: left;
  }

  .name-highlight {
    font-size: inherit;
  }

  .hero-subtext {
    font-size: 13px;
    line-height: 1.55;
    margin: 0 0 18px;
    max-width: 100%;
  }

  /* START PRACTICE BUTTON */
  .primary-actions-row {
    width: 100%;
  }

  .btn-primary-glow {
    width: 100%;
    min-height: 46px;
    padding: 11px 16px;
    font-size: 14px;
    box-sizing: border-box;
    justify-content: center;
  }

  /* COURSES + PERFORMANCE */
  .filter-tags-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
    margin-top: 12px;
  }

  .filter-btn-pill {
    width: 100%;
    min-height: 42px;
    padding: 9px 10px;
    font-size: 13px;
    box-sizing: border-box;
    justify-content: center;
  }

  .btn-icon {
    font-size: 15px;
  }

  /* RIGHT COLUMN */
  .hero-right-column {
    width: 100%;
  }

  .metrics-top-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
  }

  .metric-card-mini {
    min-height: 78px;
    padding: 12px;
    box-sizing: border-box;
    border-radius: 14px;
  }

  .metric-icon-box {
    width: 36px;
    height: 36px;
    font-size: 17px;
    flex-shrink: 0;
  }

  .metric-info h3 {
    font-size: 20px;
    margin: 0;
  }

  .metric-info p {
    font-size: 11px;
    margin: 2px 0 0;
  }
}

/* Smaller phones */
@media (max-width: 480px) {
  .hero-layout-grid {
    padding: 16px 12px;
    gap: 18px;
  }

  .welcome-heading {
    font-size: 28px;
  }

  .hero-subtext {
    font-size: 12px;
    line-height: 1.5;
  }

  .btn-primary-glow {
    min-height: 44px;
    font-size: 13px;
  }

  .filter-btn-pill {
    min-height: 40px;
    font-size: 12px;
  }

  .metric-card-mini {
    min-height: 70px;
    padding: 10px;
  }

  .metric-icon-box {
    width: 32px;
    height: 32px;
    font-size: 15px;
  }

  .metric-info h3 {
    font-size: 18px;
  }

  .metric-info p {
    font-size: 10px;
  }
}
/* LIGHT CONTENT SECTION (Courses Library) */
.content-section-light {
  background-color: #f8f6f0;
  color: #16141f;
  padding: 50px 40px;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
}

.section-header h2 {
  font-size: 24px;
  color: #16141f;
}

.section-header p {
  font-size: 13px;
  color: #8b8699;
  margin-top: 2px;
}

.section-header a {
  color: #9333ea;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.coursedivmain {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.course {
  background: #ffffff;
  border: 1px solid #e5e0d3;
  border-radius: 16px;
  padding: 16px;
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.course:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.course-img-wrapper {
  height: 140px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 14px;
}

.courseimg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cname {
  font-size: 18px;
  color: #16141f;
  font-weight: 700;
}

.course-desc {
  font-size: 12px;
  color: #8b8699;
  margin: 6px 0 14px 0;
}

.tag-pill {
  background: #f0ece1;
  color: #5c596e;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 6px;
  font-weight: 500;
}

/* PERFORMANCE WRAPPER */
.performance-wrapper {
  background: #f8f6f0;
  padding-bottom: 50px;
}

.graph-card-container {
  background: #ffffff;
  border: 1px solid #e5e0d3;
  border-radius: 16px;
  padding: 24px;
}

#graph {
  width: 100%;
  height: 400px;
}

/* RESPONSIVE DESIGN */
@media screen and (max-width: 900px) {
  .hero-content-split {
    grid-template-columns: 1fr;
  }
  .hero-image-side {
    display: none;
  }
  .nav-menu {
    display: none;
  }
}
@media screen and (max-width: 1100px) {
  .top-navbar {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
  }

  .nav-brand {
    flex-shrink: 0;
  }

  .nav-brand .logo {
    max-width: 150px;
    height: auto;
  }

  .nav-menu {
    order: 3;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 4px 0;
  }

  .nav-menu::-webkit-scrollbar {
    display: none;
  }

  .nav-menu a {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 9px 14px;
    font-size: 13px;
  }

  .nav-profile {
    flex-shrink: 0;
  }

  .profile-pill {
    white-space: nowrap;
  }
}
nav.navhead {
  display: flex;
  border-bottom: 2px solid #000000;
  height: 100%;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  margin: 10px;
}

.navimg {
  height: 146px;
  width: 206px;
  position: absolute;
  margin-left: 69%;
}
.nav {
  display: flex;
  flex-direction: column;
  margin-left: 54.5%;
  margin-top: 1.2%;
  z-index: 1;
}
.nav a {
  text-decoration: none;
  padding: 2px;
  color: black;
}
.nav a:hover {
  color: cornflowerblue;
}

.heading {
  color: black;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.9);
  padding: 20px;
}
.subheading {
  color: black;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.9);
  margin-left: 30px;
  font-size: 30px;
  margin-top: 30px;
} /* ==========================================
   COURSE CARDS GRID & ITEM STYLES
   ========================================== */

.coursedivmain {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 20px;
}

.course {
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.course.hover-lift:hover {
  transform: translateY(-5px);
  border-color: rgba(147, 51, 234, 0.4);
  box-shadow: 0 20px 40px rgba(147, 51, 234, 0.15);
}

/* Image Wrapper & Styling */
.course-img-wrapper {
  width: 100%;
  height: 180px;
  overflow: hidden;
  position: relative;
  background: #1f2937;
}

.courseimg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.course:hover .courseimg {
  transform: scale(1.05);
}

/* Course Content Body */
.course-content-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.course-link {
  text-decoration: none;
}

.cname {
  font-size: 22px;
  font-family: "Fraunces", serif;
  color: #fff;
  margin: 0 0 8px 0;
  transition: color 0.2s ease;
}

.course-link:hover .cname {
  color: #c084fc;
}

.course-meta-desc {
  color: #9ca3af;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 20px;
}

/* Card Footer with Session Pill & Arrow Link */
.course-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 16px;
  margin-top: auto;
}

.tag-pill {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.2);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.explore-arrow {
  color: #c084fc;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.2s ease;
}

.course:hover .explore-arrow {
  transform: translateX(4px);
}
/*Footer*/
/* ==========================================
   FOOTER STYLES
   ========================================== */

.site-footer {
  background: #0b0f19;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #9ca3af;
  padding: 60px 20px 20px 20px;
  margin-top: 80px;
  font-family: "Outfit", sans-serif;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.6;
  color: #9ca3af;
}

.footer-heading {
  color: #fff;
  font-size: 16px;
  font-family: "Fraunces", serif;
  margin-bottom: 5px;
  letter-spacing: 0.5px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links li a {
  color: #9ca3af;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-links li a:hover {
  color: #c084fc;
}

.footer-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: #22c55e;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  width: fit-content;
  margin-top: 5px;
}

.footer-subtext {
  font-size: 13px;
  color: #9ca3af;
}

.footer-bottom-bar {
  max-width: 1200px;
  margin: 25px auto 0 auto;
  text-align: center;
  font-size: 13px;
  color: #6b7280;
}
/*Links Button*/
/*Instagram*/
.instagram-follow-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.25s ease;
}

.instagram-follow-btn i {
    font-size: 17px;
}

.instagram-follow-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-1px);
}
/* Badge Container */
.microsoft-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 18px 8px 14px;
  background-color: #000000;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  text-decoration: none;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  user-select: none;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  width: 100%;
}

/* Hover & Active States */
.microsoft-store-badge:hover {
  background-color: #1f1f1f;
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.microsoft-store-badge:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* Logo Image Container */
.logo-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.microsoft-logo-image {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Text Container */
.microsoft-store-content {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.15;
}

/* Subtitle ("Get it from") */
.store-get {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.2px;
  color: #cccccc;
  text-transform: uppercase;
}

/* Title ("Microsoft Store") */
.store-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: #ffffff;
  margin-top: 1px;
}
/*Course page*/
.coursepage {
  display: flex;
  color: black;
  width: auto;
  height: auto;
  padding: 10px;
  border-radius: 10px;
}
.details {
  width: 50%;
  height: 100%;
}
.details h1 {
  margin-top: 50%;
  text-align: center;
  font-size: 60px;
  font-style: oblique;
}
.details p {
  margin-top: 40%;
  margin-right: 15%;
  font-size: 25px;
  font-style: italic;
}
.side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 50%;
  height: 100%;
}
.start {
  text-align: end;
}
.start button {
  width: 60%;
  border-radius: 5px;
  padding: 20px;
  margin: 20px;
  border: none;
  background-color: green;
  color: whitesmoke;
  cursor: pointer;
}
.start button:hover {
  background-color: darkgreen;
}
.logo {
  height: 135px;
}

.links {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.aboutcom,
.contactus {
  flex: 1;
  text-align: center;
  padding: 40px 20px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.aboutcom:hover,
.contactus:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.aboutcom a,
.contactus a {
  text-decoration: none;
  color: #222;
}

.aboutcom h1,
.contactus h1 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 1px;
  transition: 0.3s;
}

.all-cards p {
  white-space: normal;
  word-wrap: break-word;
}
.specificimg {
  height: 500px;
  border-radius: 10px;
  margin: 25%;
  width: auto;
}
.difficulty {
  font-size: 30px;
}
.difficulty label {
  font-size: 20px;
  font-style: italic;
}
.difficulty select {
  width: 100%;
  height: auto;
  padding: 10px;
  border-radius: 5px;
}
/*MI CSS*/
.quiz-container {
  width: 60%;
  margin: auto;
  padding: 20px;
}

.quiz-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.question-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 20px;
  margin: 20px 0;
  border-radius: 10px;
}

.answer-box textarea {
  width: 100%;
  height: 120px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.quiz-actions {
  margin-top: 15px;
  text-align: right;
}

.quiz-actions button {
  padding: 10px 20px;
  background: #222;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.quiz-actions button:hover {
  background: #444;
}

.dashboard {
  width: 80%;
  margin: 40px auto;
}

.dashboard-header {
  text-align: center;
  margin-bottom: 30px;
}

.dashboard-header h1 {
  font-size: 34px;
}

.dashboard-header p {
  color: #aaa;
}

.all-cards {
  background: rgba(255, 255, 255, 0.05);
  padding: 25px;
  border-radius: 18px;
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
  margin-bottom: 25px;
}

.graph-card h2 {
  margin-bottom: 15px;
}

#graph {
  width: 100%;
  height: 500px;
}

.insight-card {
  background: rgba(255, 255, 255, 0.04);
  padding: 20px;
  border-radius: 15px;
  line-height: 1.6;
}

.insight-card h3 {
  margin-bottom: 10px;
}

.insight-card ul {
  margin: 10px 0;
  padding-left: 20px;
}

.insight-card li {
  margin-bottom: 5px;
}

.tip {
  margin-top: 10px;
  color: #ddd;
  font-style: italic;
}

.result-container {
  width: 50%;
  margin: 60px auto;
  text-align: center;
}

.result-header h1 {
  font-size: 34px;
  margin-bottom: 25px;
  font-weight: 600;
}

.score-card {
  background: rgba(255, 255, 255, 0.06);
  padding: 30px;
  border-radius: 18px;
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
  margin-bottom: 25px;
  transition: 0.3s ease;
}

.score-card:hover {
  transform: translateY(-6px);
}

.score {
  font-size: 42px;
  font-weight: bold;
  margin: 10px 0;
}

.percentage {
  font-size: 20px;
  color: #ccc;
}

.feedback {
  margin: 20px 0;
}
.feedback p {
  font-size: 18px;
  padding: 10px;
  border-radius: 10px;
  display: inline-block;
}
.excellent {
  background: rgba(0, 255, 150, 0.15);
  color: #00ffb3;
}
.average {
  background: rgba(255, 200, 0, 0.15);
  color: #ffcc00;
}
.poor {
  background: rgba(255, 80, 80, 0.15);
  color: #ff4d4d;
}
.result-actions {
  margin-top: 25px;
}
.result-actions button {
  padding: 10px 20px;
  margin: 10px;
  border: none;
  border-radius: 8px;
  background: #ffffff10;
  color: #fff;
  cursor: pointer;
  font-size: 15px;
  transition: 0.3s ease;
  backdrop-filter: blur(5px);
}
.result-actions button:hover {
  background: #ffffff25;
  transform: translateY(-2px);
}

@media screen and (max-width: 800px) {
  /* HEADER */
  header {
    flex-direction: column;
    height: auto;
    text-align: center;
    padding: 15px;
  }

  .navimg {
    position: static;
    margin: 10px auto;
    width: 120px;
    height: auto;
  }

  .nav {
    margin: 10px auto;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }

  .heading {
    font-size: 40px;
    padding: 10px;
  }

  .subheading {
    font-size: 25px;
    margin: 10px;
    text-align: center;
  }

  /* COURSES */
  .coursedivmain {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    padding: 15px;
    gap: 20px;
  }

  .course {
    width: 100%;
  }

  /* COURSE PAGE */
  .coursepage {
    flex-direction: column;
    text-align: center;
  }

  .details,
  .side {
    width: 100%;
  }

  .details h1 {
    margin-top: 20px;
    font-size: 32px;
  }

  .details p {
    margin: 20px;
    font-size: 16px;
  }

  .start {
    text-align: center;
  }

  .start button {
    width: 90%;
  }

  /* LOGO */
  .logo {
    height: 80px;
  }

  /* LINKS SECTION */
  .links {
    flex-direction: column;
    padding: 15px;
  }

  .aboutcom,
  .contactus {
    padding: 20px;
  }

  /* IMAGE FIX */
  .specificimg {
    width: 90%;
    height: auto;
    margin: 10px auto;
    display: block;
  }

  /* QUIZ */
  .quiz-container {
    width: 95%;
  }

  .quiz-header {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .answer-box textarea {
    height: 100px;
  }

  /* DASHBOARD */
  .dashboard {
    width: 95%;
  }

  #graph {
    width: 100% !important;
    height: 70vh !important; /* uses screen height */
  }

  .all-cards {
    padding: 10px;
    border-radius: 10px;
  }

  /* RESULT PAGE */
  .result-container {
    width: 95%;
  }

  .score {
    font-size: 32px;
  }

  .result-actions button {
    width: 90%;
    margin: 8px 0;
  }
}

/* =========================================================
   MOBILE RESPONSIVE DESIGN — 700px AND BELOW
   ========================================================= */

@media screen and (max-width: 700px) {
  /* ---------- GLOBAL ---------- */

  * {
    box-sizing: border-box;
  }

  body {
    width: 100%;
    overflow-x: hidden;
  }

  /* ---------- NAVBAR ---------- */

  .top-navbar {
    padding: 12px 15px;
    min-height: 60px;
    gap: 10px;
  }

  .nav-brand {
    gap: 7px;
  }

  .brand-logo-box {
    padding: 5px 8px;
    font-size: 12px;
  }

  .brand-title {
    font-size: 16px;
  }

  .nav-menu {
    display: none;
  }

  .profile-pill {
    padding: 5px 8px 5px 5px;
    gap: 6px;
  }

  .profile-name {
    font-size: 11px;
  }

  .pro-badge {
    font-size: 8px;
    padding: 2px 5px;
  }

  .avatar-circle {
    width: 26px;
    height: 26px;
    font-size: 10px;
  }

  /* Old navigation */

  nav.navhead {
    height: auto;
    min-height: 60px;
    margin: 5px;
    padding: 10px;
    flex-direction: column;
    align-items: center;
  }

  .navimg {
    position: static;
    width: 120px;
    height: auto;
    margin: 5px auto;
  }

  .nav {
    margin: 8px auto;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
  }

  .nav a {
    padding: 5px 8px;
    font-size: 13px;
  }

  /* ---------- HOMEPAGE HERO ---------- */

  .hero-content-split {
    display: flex;
    flex-direction: column;
    min-height: auto;
    padding: 35px 18px 45px;
  }

  .hero-text-side {
    width: 100%;
    align-items: flex-start;
  }

  .live-pill {
    margin-bottom: 18px;
    font-size: 10px;
  }

  .heading,
  .hero-left .heading {
    font-size: 38px;
    line-height: 1.08;
    letter-spacing: -0.8px;
    padding: 0;
  }

  .subheading,
  .hero-left .subheading {
    font-size: 14px;
    line-height: 1.6;
    margin: 16px 0 24px;
    max-width: 100%;
  }

  .hero-cta-group {
    width: 100%;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 30px;
  }

  .btn-purple-glow,
  .btn-dark-outline {
    width: 100%;
    padding: 13px 20px;
  }

  .hero-stats-row {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  .stat-item {
    text-align: center;
    flex: 1;
  }

  .stat-item h2 {
    font-size: 23px;
  }

  .stat-item p {
    font-size: 9px;
    letter-spacing: 0.5px;
  }

  .hero-image-side {
    display: none;
  }

  /* ---------- COURSE LIBRARY ---------- */

  .content-section-light {
    padding: 35px 15px;
    border-radius: 18px 18px 0 0;
  }

  .section-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
  }

  .section-header h2 {
    font-size: 22px;
  }

  .section-header p {
    font-size: 12px;
  }

  .section-header a {
    font-size: 12px;
  }

  .coursedivmain {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0;
    width: 100%;
  }

  .course {
    width: 100%;
    margin: 0;
    padding: 12px;
    border-radius: 14px;
  }

  .course-img-wrapper {
    height: 160px;
    margin-bottom: 12px;
  }

  .courseimg {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .cname {
    font-size: 17px;
    padding: 5px 0;
  }

  .course-desc,
  .course-meta-desc {
    font-size: 12px;
    line-height: 1.5;
    margin: 5px 0 12px;
  }

  .course-card-footer {
    padding-top: 10px;
  }

  /* ---------- DASHBOARD ---------- */

  .dashboard-wrapper {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 20px 15px 40px !important;
    overflow: visible !important;
  }

  /* Dashboard heading container */
  .dashboard-header {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    height: auto !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    z-index: 10 !important;
    text-align: center !important;
    margin: 0 0 25px 0 !important;
    padding: 15px 10px !important;
    overflow: visible !important;
  }

  /* Main dashboard title */
  .dashboard-header h1 {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #ffffff !important;
    font-size: 30px !important;
    line-height: 1.2 !important;
    margin: 8px 0 8px !important;
    padding: 0 !important;
    font-family: "Fraunces", serif !important;
    text-shadow: none !important;
  }

  /* Dashboard subtitle */
  .dashboard-header p {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #9ca3af !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    margin: 0 auto !important;
    padding: 0 !important;
    max-width: 100% !important;
  }

  /* If you are using the live pill */
  .dashboard-header .live-pill {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin: 0 auto 8px !important;
  }

  /* Performance metric cards */
  .performance-metrics-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
    gap: 15px !important;
    margin-top: 0 !important;
  }

  .metric-card-box {
    width: 100% !important;
  }
}
.hero-left {
  width: 100%;
}

.hero-left .heading {
  font-size: 32px;
}

.hero-right-metrics {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.metric-card-mini {
  padding: 13px 10px;
}

.metric-card-mini h3 {
  font-size: 20px;
}

.metric-card-mini p {
  font-size: 9px;
}

.content-section-block {
  margin-bottom: 35px;
}

.section-header-flex {
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 18px;
}

.section-header-flex h2 {
  font-size: 21px;
}

.section-header-flex p {
  font-size: 11px;
}

.count-badge {
  font-size: 10px;
  padding: 5px 8px;
  white-space: nowrap;
}

/* ---------- PERFORMANCE DASHBOARD ---------- */

.dashboard {
  width: 95%;
  margin: 25px auto;
}

.dashboard-header {
  margin-bottom: 25px;
}

.dashboard-header h1 {
  font-size: 30px;
}

.dashboard-header p {
  font-size: 13px;
}

.performance-metrics-grid {
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.metric-card-box {
  padding: 16px;
  border-radius: 14px;
}

.metric-icon {
  width: 42px;
  height: 42px;
  font-size: 17px;
}

.metric-value {
  font-size: 21px;
}

.graph-card-container,
.graph-container-card,
.all-cards {
  padding: 16px;
  border-radius: 14px;
}

.graph-header-row {
  gap: 10px;
  align-items: flex-start;
}

.graph-header-row h2,
.graph-header-row h3 {
  font-size: 17px;
}

#graph {
  width: 100% !important;
  height: 300px !important;
}

.insight-card {
  padding: 18px;
  border-radius: 14px;
}

.insight-card h3 {
  font-size: 17px;
}

.insight-card p,
.insight-list li {
  font-size: 12px;
}

/* ---------- COURSE DETAIL PAGE ---------- */

.course-detail-wrapper {
  width: 100%;
  margin: 10px auto;
  padding: 15px;
}

.back-nav-row {
  margin-bottom: 18px;
}

.back-link {
  font-size: 12px;
}

.coursepage-split {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 18px;
  border-radius: 16px;
}

.details-side {
  width: 100%;
}

.details-side h1 {
  font-size: 32px;
  line-height: 1.15;
  margin: 5px 0 15px;
}

.course-long-desc {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.track-features-box {
  grid-template-columns: 1fr;
  gap: 10px;
  padding-top: 18px;
}

.feature-item {
  padding: 11px;
}

.side-action-panel {
  padding: 15px;
  gap: 15px;
  border-radius: 13px;
}

.course-img-card {
  height: 180px;
}

.difficulty-group select {
  height: 44px;
  font-size: 13px;
}

.btn-purple-glow-full {
  padding: 13px;
  font-size: 14px;
}

/* Old course page */

.coursepage {
  flex-direction: column;
  width: 100%;
  padding: 15px;
  text-align: center;
}

.details,
.side {
  width: 100%;
}

.details h1 {
  margin-top: 20px;
  font-size: 34px;
}

.details p {
  margin: 20px 5px;
  font-size: 16px;
}

.start {
  text-align: center;
}

.start button {
  width: 95%;
  margin: 10px auto;
  padding: 15px;
}

.specificimg {
  width: 100%;
  height: auto;
  margin: 15px auto;
  display: block;
}

.difficulty {
  font-size: 22px;
}

.difficulty label {
  font-size: 16px;
}

.difficulty select {
  font-size: 14px;
}

/* ---------- QUIZ ---------- */
/* =========================================================
   MAIN QUIZ LAYOUT (Grid Side-by-side fix)
   ========================================================= */
.quiz-wrapper {
  width: 100%;
  min-height: auto;
  padding: 15px;
  box-sizing: border-box;
  align-items: flex-start;
}

.quiz-layout {
  width: 100%;
  max-width: 1250px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 300px; /* Forces left (auto) and right (300px) */
  gap: 25px;
  align-items: start;
}

.quiz-container {
  width: 100%;
  max-width: 100%;
  padding: 20px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  box-sizing: border-box;
}

.quiz-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}

.question-box {
  padding: 17px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
}

.question-box h3,
.question-box p,
.question-text {
  font-size: 17px;
  line-height: 1.45;
  margin: 0;
}

.answer-box textarea {
  width: 100%;
  height: 130px;
  font-size: 14px;
  padding: 13px;
  box-sizing: border-box;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  border-radius: 8px;
}

/* MCQ Options */
.mcq-options-group {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 20px 0;
}

.mcq-option-label {
  display: flex;
  align-items: center;
  padding: 13px 14px;
  gap: 10px;
  cursor: pointer;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  transition: 0.2s ease;
}

.mcq-option-label:hover {
  background: rgba(245,158,11,0.08);
  border-color: rgba(245,158,11,0.35);
}

.mcq-option-label.selected {
  background: rgba(245,158,11,0.12);
  border-color: #f59e0b;
}

.custom-radio {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: #f59e0b;
}

.option-text {
  font-size: 13px;
  line-height: 1.4;
}

/* Nav & Submit Buttons */
.quiz-actions {
  margin-top: 20px;
}

.navigation-buttons {
  display: flex;
  gap: 10px;
}

.btn-nav, .btn-submit-answer {
  border: none;
  border-radius: 9px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.2s ease;
}

.btn-nav {
  padding: 11px 20px;
  background: rgba(255,255,255,0.08);
  color: #f3f4f6;
}

.btn-nav:hover { background: rgba(255,255,255,0.14); }

.btn-submit-answer {
  width: 100%;
  padding: 11px 20px;
  font-size: 14px;
  background: #f59e0b;
  color: #111827;
}

.btn-submit-answer:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* =========================================================
   RIGHT SIDEBAR & QUESTION GRID
   ========================================================= */
.question-sidebar {
  width: 100%;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 15px;
  padding: 18px;
  box-sizing: border-box;
  position: sticky;
  top: 20px;
}

.question-sidebar-title {
  margin: 0 0 15px 0;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.question-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
}

/* =========================================================
   QUESTION GRID COLORS (Not Seen, Unanswered, Answered)
   ========================================================= */
.question-number {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: 0.2s ease;
  
  /* 1. DEFAULT (Not Seen): Transparent with slight border */
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #9ca3af;
}

/* 2. UNANSWERED (Seen but empty): Orange */
.question-number.unanswered {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.4);
  color: #f59e0b;
}

/* 3. ANSWERED (Filled): Green */
.question-number.answered {
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(34, 197, 94, 0.55);
  color: #22c55e;
}

/* CURRENT Question Highlight */
.question-number.current {
  box-shadow: 0 0 0 2px #ffffff;
  transform: scale(1.05);
  color: #ffffff;
  border-color: transparent;
}

.question-number:hover {
  transform: scale(1.05);
}
.question-progress {
  margin-top: 16px;
  text-align: center;
  font-size: 13px;
  color: #9ca3af;
}

.warning-text {
  margin-top: 20px;
  color: #9ca3af;
  font-size: 12px;
  line-height: 1.5;
}

/* =========================================================
   LOADING AREA (Hidden by default, triggered by JS)
   ========================================================= */
.quiz-loading-screen {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(11, 15, 25, 0.95);
  align-items: center;
  justify-content: center;
  padding: 20px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.quiz-loading-box {
  width: min(420px, 100%);
  text-align: center;
  background: #111520;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 40px 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.quiz-loading-box h2 {
  color: #ffffff;
  font-family: "Fraunces", serif;
  font-size: 24px;
  margin: 20px 0 8px;
  font-weight: 600;
}

.quiz-loading-box p {
  color: #94a3b8;
  font-size: 14px;
  margin: 0;
}

.loading-spinner {
  width: 45px;
  height: 45px;
  margin: 0 auto;
  border: 3px solid transparent;
  border-top-color: #a855f7;
  border-bottom-color: #9333ea;
  border-radius: 50%;
  animation: quizSpin 1.2s linear infinite;
  position: relative;
}

.loading-spinner::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 3px solid transparent;
  border-left-color: #c084fc;
  border-right-color: #c084fc;
  border-radius: 50%;
  animation: quizSpin 0.6s linear infinite reverse;
}

@keyframes quizSpin {
  to { transform: rotate(360deg); }
}

body.quiz-loading-active {
  overflow: hidden;
}
/* =========================================================
   LEGEND (Sum Up)
   ========================================================= */
.quiz-legend {
    display: flex;
    justify-content: space-between;
    margin-top: 18px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 11px;
    color: #9ca3af;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend-box {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.legend-box.answered {
    background: rgba(34, 197, 94, 0.14);
    border: 1px solid rgba(34, 197, 94, 0.55);
}

.legend-box.unanswered {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.4);
}

/* =========================================================
   QUIZ SUMMARY
   ========================================================= */

.quiz-summary {
    margin-top: 16px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.quiz-summary h4 {
    margin: 0 0 12px;
    font-size: 13px;
    color: #d1d5db;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.summary-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.summary-item {
    text-align: center;
    padding: 10px 5px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
}

.summary-number {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
}

.summary-label {
    display: block;
    margin-top: 3px;
    font-size: 10px;
    color: #9ca3af;
};
.submit-all-wrapper {
    width: 100%;
}

.submit-all-wrapper .btn-submit-answer {
    width: 100%;
    margin-top: 20px;
}
/*SUBMIT Quiz */

.submit-confirm-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;

    align-items: center;
    justify-content: center;

    padding: 20px;
    box-sizing: border-box;

    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
}

.submit-confirm-box {
    width: 100%;
    max-width: 420px;

    padding: 28px 24px;

    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;

    text-align: center;

    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);

    animation: submitModalIn 0.2s ease;
}

@keyframes submitModalIn {
    from {
        opacity: 0;
        transform: scale(0.94) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.submit-confirm-icon {
    width: 48px;
    height: 48px;

    margin: 0 auto 15px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);

    color: #f59e0b;

    font-size: 25px;
    font-weight: 700;
}

.submit-confirm-box h3 {
    margin: 0 0 10px;

    color: #ffffff;
    font-size: 22px;
}

.submit-confirm-box p {
    margin: 8px 0;

    color: #d1d5db;
    font-size: 14px;
    line-height: 1.5;
}

.submit-confirm-box strong {
    color: #f59e0b;
    font-size: 16px;
}

.submit-confirm-warning {
    color: #9ca3af !important;
    font-size: 12px !important;
}

.submit-confirm-actions {
    display: flex;
    gap: 10px;

    margin-top: 22px;
}

.submit-confirm-actions button {
    flex: 1;

    min-height: 42px;

    border-radius: 9px;

    font-size: 13px;
    font-weight: 600;

    cursor: pointer;

    transition: 0.2s ease;
}

.confirm-cancel-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #d1d5db;
}

.confirm-cancel-btn:hover {
    background: rgba(255, 255, 255, 0.06);
}

.confirm-submit-btn {
    background: #f59e0b;
    border: 1px solid #f59e0b;
    color: #111827;
}

.confirm-submit-btn:hover {
    background: #fbbf24;
    border-color: #fbbf24;
}


/* Mobile */
@media (max-width: 500px) {

    .submit-confirm-modal {
        padding: 15px;
    }

    .submit-confirm-box {
        padding: 24px 18px;
        border-radius: 16px;
    }

    .submit-confirm-actions {
        flex-direction: column;
    }

    .submit-confirm-actions button {
        width: 100%;
    }
}
/*MOBILE RESPONSIVENESS */
/* =========================================================
   MOBILE QUIZ LAYOUT
   Q/A → BUTTONS → QUESTION NUMBERS → SUMMARY
   ========================================================= */

@media (max-width: 850px) {

    .quiz-wrapper {
        width: 100%;
        padding: 10px;
        box-sizing: border-box;
    }

    .quiz-layout {
        width: 100%;
        max-width: 100%;
        display: flex !important;
        flex-direction: column !important;
        gap: 15px;
        align-items: stretch !important;
    }

    /* Q/A FIRST */
    .quiz-container {
        width: 100% !important;
        max-width: 100% !important;
        order: 1 !important;
        position: relative !important;
        top: auto !important;
        box-sizing: border-box;
        padding: 16px 14px;
    }

    /* SIDEBAR SECOND */
    .question-sidebar {
        width: 100% !important;
        max-width: 100% !important;
        order: 2 !important;

        position: relative !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;

        margin: 0 !important;
        box-sizing: border-box;
        padding: 15px;
    }

    /* QUESTION NUMBERS */
    .question-grid {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        gap: 8px;
    }

    .question-number {
        width: 100%;
        min-width: 0;
        aspect-ratio: 1 / 1;
        font-size: 12px;
    }

    /* NAVIGATION */
    .navigation-buttons {
        width: 100%;
        display: flex;
        gap: 8px;
    }

    .btn-nav {
        flex: 1;
        min-width: 0;
    }

    /* SUBMIT */
    .submit-all-wrapper {
        width: 100%;
        margin-top: 12px;
    }

    .submit-all-wrapper .btn-submit-answer {
        width: 100%;
    }

    /* SUMMARY */
    .quiz-summary {
        width: 100%;
    }

    .summary-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 7px;
    }
}
/* ---------- QUIZ TYPE SELECTION ---------- */

.quiz-type-wrapper {
    width: 100%;
    min-height: auto;
    padding: 35px 15px;
    box-sizing: border-box;
}

.quiz-type-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    box-sizing: border-box;
}

.quiz-type-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
}

.quiz-type-form {
    display: flex;
    width: 100%;
    min-width: 0;
    margin: 0;
}

.quiz-type-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    height: 100%;
    min-width: 0;
    padding: 28px;
    box-sizing: border-box;
}

.quiz-type-form:nth-child(3) {
    grid-column: 1 / -1;
}

.quiz-type-form:nth-child(3) .quiz-type-card {
    min-height: 170px;
}

@media (max-width: 600px) {
    .quiz-type-wrapper {
        width: 100%;
        padding: 24px 12px;
    }

    .quiz-type-container {
        width: 100%;
        max-width: 100%;
    }

    .quiz-type-header {
        margin-bottom: 20px;
    }

    .quiz-type-header h1 {
        font-size: clamp(23px, 6vw, 30px);
        line-height: 1.2;
        overflow-wrap: anywhere;
    }

    .difficulty-badge-text {
        font-size: 12px;
    }

    .quiz-type-cards {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .quiz-type-form,
    .quiz-type-form:nth-child(3) {
        grid-column: 1;
        width: 100%;
    }

    .quiz-type-card,
    .quiz-type-form:nth-child(3) .quiz-type-card {
        width: 100%;
        min-height: 0;
        height: auto;
        padding: 20px;
        border-radius: 16px;
    }

    .card-icon-box {
        width: 44px;
        height: 44px;
        font-size: 20px;
        margin-bottom: 13px;
    }

    .card-content h2 {
        font-size: 19px;
    }

    .card-content p {
        font-size: 13px;
        margin-bottom: 16px;
    }

    .card-action-indicator {
        font-size: 12px;
    }
}

@media (max-width: 380px) {
    .quiz-type-wrapper {
        padding: 20px 9px;
    }

    .quiz-type-card,
    .quiz-type-form:nth-child(3) .quiz-type-card {
        padding: 16px;
    }

    .quiz-type-header h1 {
        font-size: 23px;
    }
}

/* ---------- PROFILE PAGE ---------- */

.profile-container-wrapper {
  width: 100%;
  max-width: 100%;
  margin: 15px auto;
  padding: 0 15px;
}

.profile-card-box {
  padding: 22px 16px;
  border-radius: 16px;
}

.profile-banner-row {
  gap: 12px;
  align-items: center;
}

.profile-avatar-circle {
  width: 58px;
  height: 58px;
  font-size: 20px;
  flex-shrink: 0;
}

.profile-banner-info h2 {
  font-size: 20px;
}

.profile-username-tag {
  font-size: 12px;
}

.profile-status-badge {
  padding: 5px 9px;
  font-size: 9px;
}

.profile-divider {
  margin: 22px 0;
}

.profile-details-grid {
  gap: 10px;
}

.profile-detail-item {
  padding: 13px 14px;
  gap: 10px;
}

.detail-label {
  font-size: 11px;
}

.detail-value {
  font-size: 13px;
  text-align: right;
  word-break: break-word;
}

.profile-actions-row {
  margin-top: 20px;
}

.btn-danger-outline {
  width: 100%;
  text-align: center;
  padding: 11px;
}

/* ---------- RESULT PAGE ---------- */

.result-page-container,
.result-container {
  width: 100%;
  max-width: 100%;
  margin: 20px auto;
  padding: 0 15px;
}

.result-card-box {
  padding: 20px 15px;
  border-radius: 16px;
  gap: 20px;
}

.score-display-block {
  padding: 22px 15px;
  border-radius: 13px;
}

.score-label {
  font-size: 11px;
}

.score-highlight {
  font-size: 45px;
}

.score-total {
  font-size: 23px;
}

.percentage-pill {
  font-size: 11px;
  padding: 5px 12px;
}

.feedback-content {
  padding: 15px;
  gap: 11px;
}

.feedback-emoji {
  font-size: 26px;
}

.feedback-content h3 {
  font-size: 14px;
}

.feedback-content p {
  font-size: 11px;
}

.result-actions-grid {
  gap: 10px;
}

.btn-dark-outline-full,
.btn-purple-glow-full {
  padding: 13px;
  font-size: 13px;
}

/* Old result styles */

.result-header h1 {
  font-size: 28px;
}

.score-card {
  padding: 22px 15px;
}

.score {
  font-size: 34px;
}

.percentage {
  font-size: 17px;
}

.result-actions button {
  width: 100%;
  margin: 6px 0;
}

/* ---------- ABOUT PAGE ---------- */

.about-page-container {
  width: 100%;
  padding: 15px;
}

.about-hero-card,
.about-vision-card {
  padding: 22px 18px;
  border-radius: 16px;
  margin-bottom: 18px;
}

.about-hero-card h3,
.about-vision-card h3 {
  font-size: 20px;
}

.about-hero-card p,
.about-vision-card p {
  font-size: 13px;
  line-height: 1.65;
}

.about-pillars-grid {
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 18px;
}

.pillar-card {
  padding: 20px;
  border-radius: 15px;
}

.pillar-icon {
  width: 42px;
  height: 42px;
  font-size: 19px;
  margin-bottom: 14px;
}

.pillar-card h3 {
  font-size: 17px;
}

.pillar-card p {
  font-size: 13px;
}

/* ---------- LINKS / FOOTER ---------- */

.links {
  width: 100%;
  flex-direction: column;
  gap: 12px;
  padding: 15px;
}

.aboutcom,
.contactus {
  width: 100%;
  padding: 25px 15px;
}

.aboutcom h1,
.contactus h1 {
  font-size: 19px;
}

/* ---------- LOGO ---------- */

.logo {
  height: 70px;
  max-width: 100%;
  object-fit: contain;
}

/* =========================================================
   FINAL MOBILE FIX — 700px AND BELOW
   MUST BE AT THE END OF style.css
   ========================================================= */

@media screen and (max-width: 700px) {
  /* -------------------------
       GLOBAL
    ------------------------- */

  body {
    overflow-x: hidden;
  }

  /* -------------------------
       NAVBAR
    ------------------------- */

  .top-navbar {
    padding: 14px 16px;
    flex-direction: column;
    gap: 16px;
  }

  .nav-brand {
    justify-content: center;
    width: 100%;
  }

  .brand-title {
    font-size: 22px;
  }

  .nav-menu {
    display: flex;
    width: 100%;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
  }

  .nav-menu a {
    font-size: 13px;
  }

  .profile-pill {
    align-self: center;
  }

  /* -------------------------
       MAIN DASHBOARD
    ------------------------- */

  .dashboard-wrapper {
    width: 100%;
    max-width: 100%;
    padding: 12px 12px 50px;
    margin: 0;
  }

  .dashboard-hero {
    width: 100%;
    padding: 24px 20px;
    margin-bottom: 30px;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    border-radius: 18px;
  }

  .hero-left {
    width: 100%;
  }

  .hero-left .heading {
    font-size: 36px !important;
    line-height: 1.15;
    text-align: left;
    padding: 0;
    color: #fff !important;
    text-shadow: none;
  }

  .hero-left .subheading {
    font-size: 15px !important;
    line-height: 1.7;
    margin: 14px 0 0;
    color: #9ca3af !important;
    text-shadow: none;
    text-align: left;
  }

  /* -------------------------
       DASHBOARD METRICS
    ------------------------- */

  .hero-right-metrics {
    width: 100%;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .metric-card-mini {
    width: 100%;
    padding: 18px 10px;
  }

  .metric-card-mini h3 {
    font-size: 26px;
  }

  .metric-card-mini p {
    font-size: 10px;
  }

  /* -------------------------
       SECTION HEADERS
    ------------------------- */

  .content-section-block {
    margin-bottom: 35px;
  }

  .section-header-flex {
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 18px;
    padding-bottom: 14px;
  }

  .section-header-flex h2 {
    font-size: 28px;
    line-height: 1.1;
  }

  .section-header-flex p {
    font-size: 13px;
    line-height: 1.4;
  }

  .count-badge {
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 11px;
    padding: 6px 9px;
  }

  /* -------------------------
       COURSE CARDS
       IMPORTANT: OVERRIDES OLD
       FLEX CSS IN YOUR FILE
    ------------------------- */

  .coursedivmain {
    width: 100% !important;
    height: auto !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    padding: 0 !important;
    margin: 0 !important;
    flex-wrap: unset !important;
  }

  .course {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 14px !important;
    margin: 0 !important;
    background: #111827 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px !important;
    text-align: left !important;
    position: relative !important;
  }

  .course-img-wrapper {
    width: 100%;
    height: 180px !important;
    margin-bottom: 14px;
    border-radius: 12px;
    overflow: hidden;
  }

  .courseimg {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 10px;
  }

  .cname {
    font-size: 20px !important;
    padding: 0 !important;
    color: #fff !important;
  }

  .course-meta-desc,
  .course-desc {
    font-size: 13px;
    line-height: 1.5;
    margin: 8px 0 15px;
    color: #9ca3af;
  }

  /* -------------------------
       PERFORMANCE SECTION
    ------------------------- */

  .performance-wrapper,
  .performance-dashboard {
    width: 100%;
    display: block !important;
    padding: 0 !important;
  }

  .performance-metrics-grid {
    width: 100%;
    grid-template-columns: 1fr !important;
    gap: 14px;
    margin-bottom: 22px;
  }

  .metric-card-box {
    width: 100%;
    padding: 18px;
  }

  .graph-card-container,
  .graph-container-card {
    width: 100%;
    padding: 16px 10px;
    margin-bottom: 20px;
    overflow: hidden;
    margin-top: 20px;
  }

  .graph-header-row {
    align-items: flex-start;
    gap: 10px;
  }

  .graph-header-row h2,
  .graph-header-row h3 {
    font-size: 18px;
  }

  #graph {
    width: 100% !important;
    height: 300px !important;
    min-height: 300px !important;
  }

  .insight-card {
    width: 100%;
    padding: 20px 16px;
  }

  /* -------------------------
       COURSE DETAIL PAGE
    ------------------------- */

  .course-detail-wrapper {
    padding: 12px;
    margin: 0 auto;
  }

  .coursepage-split {
    width: 100%;
    grid-template-columns: 1fr !important;
    gap: 24px;
    padding: 20px 16px;
  }

  .details-side h1 {
    font-size: 34px;
  }

  .course-long-desc {
    font-size: 14px;
  }

  .track-features-box {
    grid-template-columns: 1fr !important;
  }

  .side-action-panel {
    padding: 16px;
  }

  .course-img-card {
    height: 180px;
  }

  /* -------------------------
       QUIZ
    ------------------------- */

  .quiz-wrapper {
    min-height: auto;
    padding: 15px 10px;
  }

  .quiz-container {
    width: 100% !important;
    max-width: 100%;
    padding: 25px 16px;
    margin: 0 auto;
  }

  .question-box {
    padding: 18px 15px;
  }

  .question-box h3,
  .question-box p,
  .question-text {
    font-size: 18px;
  }

  .quiz-actions {
    justify-content: stretch;
  }

  .btn-submit-answer {
    width: 100%;
  }

  /* -------------------------
       INTERVIEW TYPE
    ------------------------- */
    .quiz-type-wrapper {
        width: 100%;
        min-height: auto;
        padding: 35px 12px;
        box-sizing: border-box;
    }

    .quiz-type-container {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }

    .quiz-type-header {
        margin-bottom: 25px;
    }

    .quiz-type-header h1 {
        font-size: 28px;
        line-height: 1.2;
    }

    .quiz-type-cards {
        display: grid;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 16px;
        width: 100%;
    }

    .quiz-type-form,
    .quiz-type-form:nth-child(3) {
        grid-column: 1 / -1;
        width: 100%;
        min-width: 0;
    }

    .quiz-type-card,
    .quiz-type-form:nth-child(3) .quiz-type-card {
        width: 100%;
        min-height: 0;
        height: auto;
        padding: 22px 18px;
        box-sizing: border-box;
    }

    .card-icon-box {
        width: 44px;
        height: 44px;
        margin-bottom: 14px;
        font-size: 20px;
    }

    .card-content h2 {
        font-size: 20px;
    }

    .card-content p {
        font-size: 13px;
        line-height: 1.6;
        margin-bottom: 18px;
    }

    .card-action-indicator {
        font-size: 12px;
    }
  /* -------------------------
       PROFILE
    ------------------------- */

  .profile-container-wrapper {
    width: 100%;
    padding: 12px;
    margin: 0 auto;
  }

  .profile-card-box {
    padding: 24px 16px;
  }

  .profile-banner-row {
    flex-wrap: wrap;
  }

  .profile-status-badge {
    margin-left: 0;
  }

  .profile-detail-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  /* -------------------------
       RESULT PAGE
    ------------------------- */

  .result-page-container,
  .result-container {
    width: 100% !important;
    max-width: 100%;
    padding: 12px;
    margin: 0 auto;
  }

  .result-card-box {
    padding: 24px 16px;
  }

  .score-highlight {
    font-size: 46px;
  }

  /* -------------------------
       OLD CSS CONFLICT FIX
    ------------------------- */

  .navhead,
  .navimg,
  .nav {
    position: static !important;
    margin: 0 !important;
  }

  .heading {
    text-shadow: none !important;
  }

  .subheading {
    text-shadow: none !important;
  }
}

/* Flash Messages Container */
.flash-messages-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 380px;
  width: 100%;
}

/* Base Flash Alert Box */
.alert {
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  animation: slideInRight 0.3s ease-out forwards;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Category Variants */
.alert-success {
  background-color: #d1e7dd;
  color: #0f5132;
  border-color: #badbcc;
}

.alert-warning {
  background-color: #fff3cd;
  color: #664d03;
  border-color: #ffecb5;
}

.alert-danger {
  background-color: #f8d7da;
  color: #842029;
  border-color: #f5c2c7;
}

.alert-info {
  background-color: #cff4fc;
  color: #055160;
  border-color: #b6effb;
}

/* Close Button (Optional if you want manual dismiss) */
.alert .close-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  margin-left: 10px;
  color: inherit;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.alert .close-btn:hover {
  opacity: 1;
}

/* Slide-in Animation */
@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .flash-messages-container {
    top: 15px;
    right: 15px;
    left: 15px; /* Allows the container to stretch across the screen */
    width: auto;
    max-width: none;
  }

  .alert {
    padding: 12px 15px;
    font-size: 0.9rem;
    /* Optional: Slide down from the top looks better on full-width mobile screens */
    animation: slideInDown 0.3s ease-out forwards;
  }
}

/* Mobile Slide-in Animation */
@keyframes slideInDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}


/* Dashboard wrapper */
.dashboard-wrapper {
    width: 94% !important;
    max-width: 1800px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}

/* Automatically increase columns as screen width grows */
.coursedivmain {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr)) !important;
    gap: 20px !important;
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
    align-items: stretch !important;
}

/* Cards fill their grid columns */
.coursedivmain > .course {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

/* Mobile */
@media (max-width: 599px) {
    .dashboard-wrapper {
        width: 96% !important;
    }

    .coursedivmain {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)) !important;
        gap: 12px !important;
    }

    .coursedivmain > .course {
        padding: 12px !important;
    }

    .coursedivmain .cname {
        font-size: 15px !important;
        overflow-wrap: anywhere !important;
    }
}
