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

body {
  font-family: 'Inter', sans-serif;
  background: #f7f8fc;
  color: #1e293b;
}

a {
  text-decoration: none;
}

.dashboard-wrapper {
  display: flex;
  min-height: 100vh;
}

/* SIDEBAR */

.sidebar {
  width: 290px;
  background: #ffffff;
  padding: 25px;
  border-right: 1px solid #eceef5;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.sidebar-logo {
  text-align: center;
}

.sidebar-logo img {
  width: 90px;
  height: 90px;
  object-fit: contain;
}

.sidebar-logo h1 {
  font-size: 30px;
  font-weight: 900;
  color: #0b2a5b;
  margin-top: 10px;
  letter-spacing: 1px;
}

.sidebar-logo h2 {
  font-size: 26px;
  font-weight: 800;
  color: #2e9e44;
  margin-top: -3px;
}

.sidebar-logo p {
  font-size: 13px;
  color: #64748b;
  margin-top: 6px;
  font-weight: 500;
}

/* MENU */

.sidebar-menu {
  margin-top: 35px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-menu a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 14px;
  color: #475569;
  font-size: 15px;
  font-weight: 600;
  transition: .3s;
}

.sidebar-menu a i {
  width: 20px;
  font-size: 17px;
}

.sidebar-menu a:hover {
  background: #f3f5ff;
}

.sidebar-menu a.active {
  background: #eef2ff;
  color: #5b5cf0;
}

.logout {
  color: #ef4444 !important;
}

/* STAY CONSISTENT */

.consistent-card {
  margin-top: 30px;
  background: #eef2ff;
  border-radius: 24px;
  padding: 15px;
  text-align: center;
}

.consistent-card h3 {
  font-size: 18px;
  font-weight: 800;
  color: #1e293b;
}

.consistent-card p {
  font-size: 13px;
  color: #64748b;
  margin-top: 8px;
  line-height: 1.5;
}

/* STUDENT ILLUSTRATION */

.student-illustration {
  position: relative;
  width: 160px;
  height: 140px;
  margin: 25px auto 0;
}

.student-head {
  width: 38px;
  height: 38px;
  background: #f8c9a4;
  border-radius: 50%;
  position: absolute;
  top: 10px;
  left: 60px;
}

.student-body {
  width: 70px;
  height: 55px;
  background: #6d5efc;
  border-radius: 18px;
  position: absolute;
  top: 42px;
  left: 45px;
}

.laptop {
  width: 60px;
  height: 35px;
  background: #ffffff;
  border-radius: 8px;
  position: absolute;
  top: 58px;
  left: 82px;
  border: 2px solid #dbe1ff;
}

.desk {
  width: 130px;
  height: 10px;
  background: #cbd5e1;
  position: absolute;
  bottom: 18px;
  left: 15px;
  border-radius: 10px;
}

.mini-books {
  width: 35px;
  height: 25px;
  background: #f59e0b;
  position: absolute;
  bottom: 25px;
  left: 25px;
  border-radius: 6px;
}

/* MAIN CONTENT */

.main-content {
  flex: 1;
  padding: 28px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.topbar h2 {
  font-size: 28px;
  font-weight: 800;
  color: #1e293b;
}

.topbar p {
  color: #64748b;
  margin-top: 6px;
  font-size: 14px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* NOTIFICATION */

.notification {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, .05);
  cursor: pointer;
}

.notification i {
  font-size: 18px;
  color: #475569;
}

.notification span {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* PROFILE */

.profile-box {
  background: #fff;
  padding: 10px 15px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, .05);
}

.profile-box img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-box h4 {
  font-size: 15px;
  font-weight: 700;
}

.profile-box i {
  color: #64748b;
}

/* GRID */

.content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 25px;
}

.center-column {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.right-column {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* DASHBOARD CARD */

.dashboard-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 25px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .04);
}

/* TITLES */

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title h3 {
  font-size: 20px;
  font-weight: 800;
}

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

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

.section-header a {
  color: #6366f1;
  font-size: 14px;
  font-weight: 600;
}

/* SMALL ICONS */

.small-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.purple-bg {
  background: #6d5efc;
}

.green-bg {
  background: #22c55e;
}

.orange-bg {
  background: #f59e0b;
}

.navy-bg {
  background: #0b2a5b;
}

/* STUDY RESOURCE */

.resource-grid {
  margin-top: 25px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.resource-card {
  border-radius: 22px;
  padding: 22px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.resource-card.purple {
  background: #6d5efc;
}

.resource-card.green {
  background: #22c55e;
}

.resource-card.orange {
  background: #f59e0b;
}

.resource-icon {
  width: 55px;
  height: 55px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 18px;
}

.resource-card h4 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
}

.resource-card p {
  font-size: 13px;
  line-height: 1.6;
  opacity: .95;
}

.arrow {
  position: absolute;
  right: 18px;
  bottom: 18px;
  font-size: 18px;
}

/* UPCOMING TEST */

.test-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.test-row {
  display: grid;
  grid-template-columns: 60px 1.5fr 1fr 1fr auto;
  align-items: center;
  gap: 15px;
  padding: 18px;
  border: 1px solid #eef1f6;
  border-radius: 18px;
}

.test-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.test-info h4 {
  font-size: 16px;
  font-weight: 800;
  color: #1e293b;
}

.test-info p {
  margin-top: 4px;
  font-size: 13px;
  color: #64748b;
}

.test-date,
.test-time {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #64748b;
}

.test-row button {
  border: none;
  background: #6d5efc;
  color: #fff;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.test-row button:hover {
  background: #5848f0;
}

/* CURRENT AFFAIRS */

.current-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.current-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border: 1px solid #eef1f6;
  border-radius: 18px;
}

.current-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.current-row h4 {
  font-size: 15px;
  font-weight: 800;
  color: #1e293b;
}

.current-row p {
  margin-top: 4px;
  font-size: 13px;
  color: #64748b;
}

.new-badge {
  margin-left: auto;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 20px;
}

.download-btn {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 12px;
  background: #f3f4f6;
  color: #475569;
  cursor: pointer;
  margin-left: auto;
}

.download-btn:hover {
  background: #e5e7eb;
}

.books-icon {
  font-size: 24px;
}

/* PERFORMANCE CARD */

.performance-card h3 {
  font-size: 20px;
  font-weight: 800;
}

.circle-progress {
  width: 190px;
  height: 190px;
  margin: 25px auto;
  border-radius: 50%;
  background: conic-gradient(#6d5efc 0 78%, #eef2ff 78% 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.circle-inner {
  width: 145px;
  height: 145px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.circle-inner h2 {
  font-size: 34px;
  font-weight: 900;
  color: #1e293b;
}

.circle-inner span {
  font-size: 18px;
}

.circle-inner p {
  font-size: 13px;
  color: #64748b;
  margin-top: 4px;
}

.score-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 16px;
  border-radius: 18px;
  margin-top: 15px;
}

.purple-soft {
  background: #f3f1ff;
}

.green-soft {
  background: #ecfdf3;
}

.orange-soft {
  background: #fff7ed;
}

.score-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.score-card p {
  font-size: 13px;
  color: #64748b;
}

.score-card h3 {
  font-size: 20px;
  margin-top: 4px;
  color: #1e293b;
}

/* LATEST RESULT */

.latest-card h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 18px;
}

.result-box {
  background: #f8fafc;
  border-radius: 20px;
  padding: 20px;
}

.result-box h4 {
  font-size: 16px;
  font-weight: 800;
  color: #1e293b;
}

.result-box p {
  margin-top: 6px;
  color: #64748b;
  font-size: 13px;
}

.result-score {
  margin-top: 18px;
}

.result-score h2 {
  font-size: 32px;
  color: #6d5efc;
  font-weight: 900;
}

.result-score span {
  font-size: 16px;
}

.result-btn {
  width: 100%;
  border: none;
  margin-top: 18px;
  padding: 14px;
  border-radius: 14px;
  background: #6d5efc;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.result-btn:hover {
  background: #5848f0;
}

/* RESPONSIVE */

@media(max-width:1200px) {

  .content-grid {
    grid-template-columns: 1fr;
  }

  .right-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}

@media(max-width:900px) {

  .dashboard-wrapper {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #eceef5;
  }

  .resource-grid {
    grid-template-columns: 1fr;
  }

  .test-row {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .current-row {
    flex-direction: column;
    text-align: center;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .right-column {
    grid-template-columns: 1fr;
  }
}

@media(max-width:600px) {

  .main-content {
    padding: 15px;
  }

  .topbar h2 {
    font-size: 22px;
  }

  .dashboard-card {
    padding: 18px;
  }

  .circle-progress {
    width: 150px;
    height: 150px;
  }

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

  .circle-inner h2 {
    font-size: 28px;
  }

  .profile-box h4 {
    display: none;
  }
}

/* FINAL DASHBOARD FIX - MATCH APPROVED IMAGE */

body {
  background: #ffffff;
}

.sidebar {
  width: 320px;
  padding: 28px 22px;
}

.sidebar-logo img {
  width: 115px;
  height: 115px;
}

.sidebar-logo h1 {
  font-size: 38px;
  color: #0B2A5B;
  margin-top: 6px;
}

.sidebar-logo h2 {
  font-size: 32px;
  color: #2E9E44;
}

.sidebar-logo p {
  color: #0B2A5B;
  font-size: 14px;
  font-weight: 600;
}

.sidebar-menu a.active {
  background: #0B2A5B;
  color: #fff;
}

.sidebar-menu a {
  font-size: 17px;
  font-weight: 700;
  padding: 16px 20px;
}

.main-content {
  background: #fafbff;
}

.dashboard-card {
  border: 1px solid #edf0f6;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .05);
  border-radius: 16px;
}

.resource-card {
  background: #fff !important;
  color: #07152e !important;
  border: 1px solid #edf0f6;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .04);
}

.resource-card p {
  color: #111827;
}

.resource-card.purple .resource-icon {
  background: #f0eaff;
  color: #5b21d9;
}

.resource-card.green .resource-icon {
  background: #e7f8ec;
  color: #15803d;
}

.resource-card.orange .resource-icon {
  background: #fff3e2;
  color: #f97316;
}

.resource-card.purple .arrow {
  color: #5b21d9;
}

.resource-card.green .arrow {
  color: #15803d;
}

.resource-card.orange .arrow {
  color: #f97316;
}

.test-row button {
  background: #fff;
  color: #0B2A5B;
  border: 1.5px solid #0B2A5B;
}

.test-row button:hover {
  background: #0B2A5B;
  color: #fff;
}

.circle-progress {
  background: conic-gradient(#0B2A5B 0 78%, #dbe7ff 78% 100%);
}

.result-score h2 {
  color: #15803d;
}

.result-btn {
  background: #fff;
  color: #0B2A5B;
  border: 1.5px solid #0B2A5B;
}

.result-btn:hover {
  background: #0B2A5B;
  color: #fff;
}

.consistent-card {
  background: #0B2A5B;
  color: #fff;
}

.consistent-card h3,
.consistent-card p {
  color: #fff;
}

/* FINAL SIZE FIX */

.sidebar {
  width: 250px;
  padding: 22px 20px;
}

.sidebar-logo {
  margin-bottom: 15px;
}

.logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.logo-row img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.logo-text h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  color: #0B2A5B;
  line-height: 1;
}

.logo-text h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  color: #1E9C45;
  line-height: 1;
}

.logo-tagline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}

.logo-tagline span {
  width: 20px;
  height: 2px;
  background: #1E9C45;
}

.logo-tagline p {
  margin: 0;
  font-size: 10px;
  font-weight: 600;
  color: #1F2937;
}

.sidebar-menu {
  margin-top: 10px;
}

.sidebar-menu a {
  padding: 12px 16px;
  font-size: 15px;
}

.main-content {
  padding: 18px 12px;
}

.topbar {
  margin-bottom: 22px;
}

.topbar h2 {
  font-size: 22px;
}

.dashboard-card {
  padding: 18px;
}

.resource-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.resource-card {
  min-height: 130px;
  padding: 14px;
}

.resource-icon {
  width: 54px;
  height: 54px;
  margin-bottom: 14px;
}

.resource-card h4 {
  font-size: 17px;
  line-height: 1.25;
}

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

.circle-progress {
  width: 140px;
  height: 140px;
}

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

.profile-box img {
  width: 48px;
  height: 48px;
}

.profile-box {
  position: relative;
  cursor: pointer;
}

.profile-dropdown {
  position: absolute;
  top: 65px;
  right: 0;
  width: 190px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .12);
  padding: 10px;
  display: none;
  z-index: 100;
}

.profile-dropdown.show {
  display: block;
}

.profile-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  color: #1e293b;
  font-size: 14px;
  font-weight: 700;
  border-radius: 10px;
}

.profile-dropdown a:hover {
  background: #f3f6fb;
}

.profile-dropdown a:last-child {
  color: #ef4444;
}

.profile-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.profile-modal.show {
  display: flex;
}

.profile-modal-box {
  width: 460px;
  max-width: 90%;
  background: #fff;
  border-radius: 16px;
  padding: 18px 28px;
}

.modal-close {
  position: absolute;
  right: 22px;
  top: 18px;
  border: none;
  background: none;
  font-size: 22px;
  color: #64748b;
  cursor: pointer;
}

.profile-modal-box h2 {
  font-weight: 800;
  font-size: 20px;
  margin-bottom: 12px;
  color: #0f172a;
}

.modal-profile-img {
  width: 80px;
  height: 80px;
  margin: 0 auto 10px auto;
  display: block;
  border-radius: 50%;
}

.profile-info {
  display: flex;
  flex-direction: column;
}

.profile-info div {
  display: grid;
  grid-template-columns: 35px 1fr 1fr;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
}

.profile-info i {
  color: #0B2A5B;
}

.profile-info span {
  color: #475569;
  font-weight: 600;
}

.profile-info span,
.profile-info strong {
  font-size: 14px;
}

.profile-info strong {
  color: #0f172a;
  font-weight: 700;
}

.active-status {
  background: #dcfce7;
  color: #15803d !important;
  padding: 6px 14px;
  border-radius: 8px;
  width: max-content;
}

.close-btn {
  margin: 15px auto 0 auto;
  width: 160px;
  height: 42px;
  display: block;
  border: none;
  border-radius: 8px;
  background: #0B2A5B;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.profile-modal {
  overflow-y: auto;
  padding: 20px;
}

.image-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .85);
  z-index: 99999;
  justify-content: center;
  align-items: center;
}

.image-modal.show {
  display: flex;
}

.large-profile-image {
  width: 350px;
  height: 350px;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid #fff;
}

.image-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
}

.edit-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.edit-modal.show {
  display: flex;
}

.edit-modal-box {
  width: 460px;
  max-width: 90%;
  background: #fff;
  border-radius: 16px;
  padding: 22px 30px;
  position: relative;
  text-align: center;
  box-shadow: 0 25px 70px rgba(0, 0, 0, .25);
}

.edit-modal-box h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 15px;
}

.edit-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.edit-form input,
.edit-form select {
  height: 44px;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  padding: 0 14px;
  font-size: 14px;
  outline: none;
}

.edit-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.edit-actions button {
  flex: 1;
  height: 42px;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}

#saveEditBtn {
  background: #0B2A5B;
  color: #fff;
}

#cancelEditBtn {
  background: #e5e7eb;
  color: #111827;
}

.upload-photo-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 auto 15px;
  padding: 9px 16px;
  border-radius: 8px;
  background: #eef2ff;
  color: #0B2A5B;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.upload-photo-btn:hover {
  background: #dbe7ff;
}

.error-msg {
  display: block;
  text-align: left;
  color: #dc2626;
  font-size: 12px;
  font-weight: 600;
  margin-top: -8px;
  margin-bottom: 2px;
  min-height: 14px;
}

.edit-form input.error {
  border-color: #dc2626;
  background: #fff5f5;
}

.upload-photo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 auto 14px;
  padding: 8px 15px;
  border-radius: 8px;
  background: #eef2ff;
  color: #0B2A5B;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.edit-field small {
  display: block;
  text-align: left;
  color: #dc2626;
  font-size: 12px;
  margin-top: 4px;
  min-height: 14px;
}

.edit-form input.error {
  border-color: #dc2626;
  background: #fff7f7;
}

.edit-form input.success {
  border-color: #16a34a;
}

/* EDIT PROFILE DESIGN FIX */

.edit-modal-box {
  width: 430px;
  padding: 20px 28px;
}

.edit-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.edit-field {
  width: 100%;
  max-width: 320px;
}

.edit-form input,
.edit-form select {
  width: 100%;
  height: 44px;
}

.edit-field small {
  text-align: left;
  margin-left: 0;
}

.edit-actions {
  width: 100%;
  max-width: 400px;
  margin: 18px auto 0;
}

.photo-success-msg {
  display: block;
  color: #16a34a;
  font-size: 13px;
  font-weight: 600;
  margin-top: 8px;
  text-align: center;
}

/* EDIT PROFILE COMPACT FIX */

.edit-modal-box {
  width: 420px;
  padding: 14px 26px;
}

.edit-modal-box h2 {
  font-size: 20px;
  margin-bottom: 8px;
}

.edit-modal-box .modal-profile-img {
  width: 68px;
  height: 68px;
  margin-bottom: 6px;
}

.upload-photo-btn {
  margin: 0 auto 8px;
  padding: 7px 14px;
  font-size: 13px;
}

.edit-form {
  gap: 6px;
}

.edit-field {
  max-width: 320px;
}

.edit-form input,
.edit-form select {
  height: 40px;
  font-size: 13px;
}

.edit-field small {
  min-height: 12px;
  font-size: 11px;
  margin-top: 2px;
}

.edit-actions {
  margin-top: 10px;
}

.edit-actions button {
  height: 40px;
}

/* DASHBOARD ALIGNMENT CLEANUP */

.dashboard-wrapper {
  align-items: stretch;
}

.sidebar {
  min-height: 100vh;
  position: sticky;
  top: 0;
}

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

.topbar {
  min-height: 70px;
}

.content-grid {
  align-items: start;
}

.dashboard-card {
  width: 100%;
}

.resource-card {
  min-height: 170px;
}

.test-row {
  grid-template-columns: 55px 1.6fr 1fr 1fr 110px;
}

.test-row button {
  width: 100%;
  white-space: nowrap;
}

.current-row>div:nth-child(2) {
  flex: 1;
}

.download-btn {
  margin-left: 0;
}

.performance-card {
  text-align: left;
}

.profile-box {
  min-width: 190px;
  justify-content: space-between;
}

.consistent-card {
  margin-top: 20px;
}

/* TEST SERIES PAGE */
.testseries-page {
  display: flex;
  flex-direction: column;
  gap: 14px
}

.test-card {
  background: #fff;
  border: 1px solid #edf0f6;
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .05);
  padding: 18px
}

.test-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px
}

.test-title-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px
}

.test-title-icon.blue {
  background: #eaf2ff;
  color: #0057ff
}

.test-title-icon.purple {
  background: #f3f1ff;
  color: #6d5efc
}

.test-section-title h3 {
  font-size: 20px;
  font-weight: 900;
  color: #0f172a
}

.test-section-title p {
  margin-top: 3px;
  color: #64748b;
  font-size: 14px
}

.active-test-box {
  background: #f8fffb;
  border: 1.5px solid #bcefd3;
  border-radius: 14px;
  padding: 18px
}

.active-test-head {
  display: grid;
  grid-template-columns: 78px 1fr 130px;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px
}

.course-seal {
  width: 70px;
  height: 70px;
  border-radius: 14px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e7f2ec
}

.course-seal img {
  width: 56px;
  height: 56px;
  object-fit: contain
}

.active-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap
}

.active-title-row h3 {
  font-size: 22px;
  font-weight: 900;
  color: #0f172a
}

.active-title-row span {
  background: #dff8e9;
  color: #15803d;
  border: 1px solid #8ee0ac;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 800
}

.test-meta {
  display: flex;
  gap: 24px;
  margin-top: 12px;
  flex-wrap: wrap
}

.test-meta p {
  color: #64748b;
  font-size: 14px;
  font-weight: 600
}

.test-meta i {
  color: #0B2A5B;
  margin-right: 6px
}

.view-course-btn {
  height: 40px;
  border: 1.5px solid #16a34a;
  color: #15803d;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  background: #fff
}

.test-category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px
}

.test-category-card {
  background: #fff;
  border: 1px solid #e5eaf2;
  border-radius: 12px;
  padding: 16px;
  min-height: 150px
}

.category-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 12px
}

.test-category-card h4 {
  font-size: 15px;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 8px
}

.test-category-card p {
  color: #64748b;
  font-size: 13px;
  line-height: 1.45;
  min-height: 38px
}

.test-category-card button {
  width: 92px;
  height: 36px;
  border-radius: 7px;
  background: #fff;
  font-weight: 800;
  cursor: pointer;
  margin-top: 12px
}

.test-category-card.green .category-icon {
  background: #e9fbf1;
  color: #16a34a;
  border: 1px solid #8ee0ac
}

.test-category-card.green button {
  border: 1.5px solid #16a34a;
  color: #15803d
}

.test-category-card.purple .category-icon {
  background: #f3f1ff;
  color: #6d5efc;
  border: 1px solid #c5b8ff
}

.test-category-card.purple button {
  border: 1.5px solid #6d5efc;
  color: #6d5efc
}

.test-category-card.orange .category-icon {
  background: #fff7ed;
  color: #f97316;
  border: 1px solid #fdba74
}

.test-category-card.orange button {
  border: 1.5px solid #f97316;
  color: #f97316
}

.test-category-card.sky .category-icon {
  background: #eff6ff;
  color: #3b82f6;
  border: 1px solid #93c5fd
}

.test-category-card.sky button {
  border: 1.5px solid #3b82f6;
  color: #2563eb
}

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

.price-card {
  border: 1px solid #e5eaf2;
  border-radius: 12px;
  overflow: hidden;
  background: #fff
}

.price-head {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900
}

.price-card.ibps .price-head {
  background: #f4f0ff;
  color: #6d28d9
}

.price-card.ssc .price-head {
  background: #ecfdf3;
  color: #15803d
}

.price-card.rrb .price-head {
  background: #fff7ed;
  color: #ea580c
}

.price-card.norcet .price-head {
  background: #eff6ff;
  color: #2563eb
}

.price-body {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 8px;
  align-items: center;
  padding: 14px;
  min-height: 145px
}

.exam-logo {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900
}

.text-logo {
  font-size: 25px;
  color: #0057ff;
  background: #eff6ff
}

.badge-logo {
  background: #fee2e2;
  color: #dc2626;
  font-size: 17px
}

.badge-logo.red {
  background: #fee2e2;
  color: #dc2626
}

.badge-logo.green {
  background: #dcfce7;
  color: #15803d
}

.price-body ul {
  list-style: none
}

.price-body li {
  font-size: 13px;
  color: #475569;
  margin: 7px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600
}

.price-body li i {
  color: #16a34a;
  font-size: 11px
}

.price-footer {
  border-top: 1px solid #edf0f6;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between
}

.price-footer h3 {
  font-size: 24px;
  font-weight: 900
}

.price-footer button {
  height: 38px;
  padding: 0 14px;
  border-radius: 7px;
  background: #fff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer
}

.price-card.ibps .price-footer h3,
.price-card.ibps .price-footer button {
  color: #6d28d9;
  border-color: #8b5cf6
}

.price-card.ssc .price-footer h3,
.price-card.ssc .price-footer button {
  color: #15803d;
  border-color: #16a34a
}

.price-card.rrb .price-footer h3,
.price-card.rrb .price-footer button {
  color: #ea580c;
  border-color: #f97316
}

.price-card.norcet .price-footer h3,
.price-card.norcet .price-footer button {
  color: #2563eb;
  border-color: #3b82f6
}

.why-test-card {
  background: #eff6ff;
  border: 1px solid #dbeafe;
  border-radius: 16px;
  padding: 18px;
  display: grid;
  grid-template-columns: 260px 1fr;
  align-items: center;
  gap: 20px
}

.why-left {
  display: flex;
  align-items: center;
  gap: 16px
}

.why-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #0057ff;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 25px
}

.why-left h3 {
  font-size: 20px;
  font-weight: 900
}

.why-points {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px
}

.why-points div {
  border-left: 1px solid #d5e3f7;
  text-align: center;
  padding: 6px 8px
}

.why-points i {
  color: #0057ff;
  font-size: 20px;
  margin-bottom: 6px
}

.why-points p {
  color: #475569;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 600
}

@media(max-width:1200px) {

  .test-category-grid,
  .explore-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .why-test-card {
    grid-template-columns: 1fr
  }
}

@media(max-width:700px) {
  .active-test-head {
    grid-template-columns: 1fr;
    text-align: center
  }

  .course-seal {
    margin: auto
  }

  .active-title-row,
  .test-meta {
    justify-content: center
  }

  .view-course-btn {
    max-width: 160px;
    margin: auto
  }

  .test-category-grid,
  .explore-grid,
  .why-points {
    grid-template-columns: 1fr
  }

  .price-body {
    grid-template-columns: 1fr;
    text-align: center
  }

  .exam-logo {
    margin: auto
  }
}