/* Main Layout */
.content-area {
  display: flex;
  gap: 20px;
}

body {
  font-family: 'Inter', sans-serif;
  background: white;
}

.page-dashboard-container {
  display: flex;
  gap: 2rem;
  padding: 0rem 2rem 2rem 2rem;
  background-color: #f8f9fa;
  min-height: 100vh;
}

.page-main-content {
  flex: 1;
}

.upgrade {
  /* background: linear-gradient(90deg, #7b61ff, #a278f0); */
  border-radius: 1rem;
  /* padding: 1rem 1rem 0 1.5rem; */
  color: white;
  position: relative;
  overflow: hidden;
  width: 100%;
  /* max-width: 700px; */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  /* height: 40%; */
}

.practice-mock {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2rem;
}

.text-content {
  z-index: 2;
  max-width: 100%;
}

#MainHead {
  margin-left: -50px;
  font-size: 2.5rem;
}

.practice-mock h1 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.8rem 0;
}

.subtext {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.buttons {
  display: flex;
  gap: 1rem;
}

.get-started,
.learn-more {
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  border: none;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.get-started {
  background-color: white;
  color: #7b61ff;
}

.learn-more {
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.get-started:hover,
.learn-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.mock-image {
  height: 340px;
  width: auto;
  flex-shrink: 0;
  width: 330px;
}

.feature-section {
  padding-top: 2rem;
  font-family: "Poppins", sans-serif;
  }


/* Spacing between badges and cards */
.badges {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: nowrap;
  margin-bottom: 2rem; /* 👈 Add space between badges and cards */
}

/* Badge styling remains same */
.badge {
  flex: 1;
  min-width: 180px;
  /* max-width: 220px; */
  display: flex;
  align-items: center;
  background-color: #d9d0ff; /* Light Purple */
  color: black; /* Dark Purple Text */
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  font-weight: 600;
  font-size: 0.95rem;
  gap: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
}

.badge img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.badge span {
  flex: 1;
  text-align: left;
  line-height: 1.3;
}

.badge:hover {
  transform: translateY(-2px);
  background-color: #9b65ff;
  color: black;
}

.badge.active {
  background-color: #9b65ff;
  color: black;
  border-radius: 1rem;
}

.badge.active:hover {
  background-color: #9b65ff;
  color: black;
  border-radius: 1rem;
}
/* Modules css */
.modules {
  display: flex;
  max-width: 220px;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: nowrap;
  margin-bottom: 2rem; /* 👈 Add space between badges and cards */
}

.module {
  flex: 1;
  min-width: 173px;
  max-width: 220px;
  display: flex;
  align-items: center;
  background-color: #d9d0ff;
  color: black;
  padding: 12px 0px;
  border-radius: 1rem;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
  white-space: nowrap;
}

.module img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.module span {
  flex: 1;
  text-align: center;
  line-height: 1.3;
}

.module:hover {
  transform: translateY(-2px);
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 cards per row */
  gap: 2rem;
}

.card {
  background-color: #fff;
  border-radius: 1rem;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  font-weight: bold;
  font-size: 1.1rem;
  color: #222;
  height: auto;
  min-height: 100px;
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.card img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
  margin: 0;
}

.card h3 {
  margin: 0;
  line-height: 1.2;
  font-weight: 600;
}

.card:hover {
  background-color: #a278f0;
  color: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

.card:hover h3 {
  color: white;
}

.test-date-card {
  background-color: #7C5CFC;
  color: white;
  border-radius: 0.75rem;
  text-align: center;
  padding: 1.5rem;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.icon-btn {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
}

.sidebar-box {
  background-color: white;
  border-radius: 0.75rem;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.message-card {
  background-color: #7C5CFC;
  color: white;
  border-radius: 0.75rem;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  object-fit: cover;
}
/* Explore Section */

/* new css */

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

.course-card {
  display: flex;
  align-items: center;
  background: white;
  padding: 9px;
  margin-left: 40px;
  margin-right: 40px;
  border-radius: 10px;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

.course-card img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-right: 15px;
}

.course-info {
  flex: 1;
}

.course-info h4 {
  margin: 0;
  font-size: 16px;
  font-weight: bold;
}

.course-info p {
  margin: 5px 0;
  color: gray;
}

.see-details-link {
  text-decoration: none;
  color: #8659f5;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background-color 0.3s ease, color 0.3s ease;
  padding: 5px 15px;
  border-radius: 5px;
}

.see-details-link:hover {
  background-color: #8659f5;
  color: white;
}

.start-button {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.6rem 1.2rem;
  background-color: #ff4d4d;
  color: white;
  border: none;
  border-radius: 20px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.start-button:hover {
  background-color: #d93636;
  transform: scale(1.05);
}

@media (max-width: 1024px) {
  .content-area {
    flex-direction: column;
  }

  .cards {
    grid-template-columns: 1fr; /* Stack cards on smaller screens */
  }

  .right-sidebar {
    width: 100%;
    margin-left: 0;
    margin-top: 2rem;
  }

  .badges {
    flex-wrap: wrap;
    justify-content: center;
  }
}
.center-wrapper {
  margin: 60px auto;
  max-width: 900px;
  padding: 0 20px;
}

/* Header Style */
.ques-header {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  color: #4c418d;
  margin-bottom: 40px;
}

/* FAQ List Container */
.faq-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* FAQ Card Item */
.faq-item {
  background-color: #f3f0ff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(78, 64, 187, 0.1);
  transition: background-color 0.3s, box-shadow 0.3s;
}

.faq-item:hover {
  background-color: #ebe5ff;
  box-shadow: 0 6px 16px rgba(78, 64, 187, 0.2);
}

/* FAQ Question Button */
.faq-question {
  width: 100%;
  padding: 18px 24px;
  font-size: 17px;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #3e366b;
  transition: color 0.3s ease;
}

.faq-question span {
  display: flex;
  align-items: center;
  gap: 12px;
}

.faq-question i {
  font-size: 18px;
  color: #6b5ecf;
}

/* Arrow Styling */
.faq-question .arrow {
  font-size: 18px;
  transition: transform 0.3s ease;
  color: #6b5ecf;
}

.faq-item.active .faq-question .arrow {
  transform: rotate(180deg);
}

/* Answer Section */
.faq-answer {
  max-height: 0;
  overflow: auto;
  opacity: 0;
  padding: 0 24px;
  transition: max-height 0.4s ease, opacity 0.4s ease, padding 0.3s ease;
  color: #4a4a4a;
  font-size: 15px;
  font-weight: 550;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  max-height: 600px;
  opacity: 1;
  padding: 16px 24px 24px;
}

/* Responsive Image */
.faq-answer img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-top: 15px;
  border-radius: 10px;
}

/* Optional: Add subtle border to answer area */
.faq-answer {
  border-top: 1px solid #d9d4f3;
}
