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

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
}

.page-dashboard-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
  padding: 1.5rem;
  min-height: 100vh;
}

.page-main-content {
  flex: 1;
  min-width: 300px;
}

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

.practice-mock {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

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

#MainHead {
  font-size: 2rem;
}

.practice-mock h1 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

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

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

.get-started,
.learn-more {
  padding: 0.6rem 1.2rem;
  border-radius: 0.75rem;
  border: none;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
}

.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: 250px;
  width: auto;
  flex-shrink: 0;
  max-width: 100%;
}

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

.badges {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.badge {
  flex: 1;
  min-width: 150px;
  max-width: 200px;
  display: flex;
  align-items: center;
  background-color: #a278f0;
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.85rem;
  gap: 0.75rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
  white-space: nowrap;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

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

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

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

.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;
}

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

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

.right-sidebar {
  width: 270px;
  margin-left: 62px;
  background-color: white;
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  height: fit-content;
  /* margin-left: 124px; */
}

.sidebar-section {
  padding-bottom: 2rem;
  border-bottom: 1px solid #e2e8f0;
}

.sidebar-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* User Info Section */
.user-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.user-details h3 {
  font-size: 1.5rem;
  color: #1a202c;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.user-email {
  color: #718096;
  font-size: 1rem;
}

.user-avatar img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

/* Test Date Section */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-header h3 {
  font-size: 1.25rem;
  color: #1a202c;
  font-weight: 600;
}

.more-options {
  background: none;
  border: none;
  color: #718096;
  cursor: pointer;
  padding: 0.5rem;
}

.date-card {
  background-color: #ff69b4;
  color: white;
  padding: 1.5rem;
  border-radius: 1rem;
  text-align: center;
  /* margin-right: 85px; */
  padding: 6px 12px 6px 12px;
}

.date-card .year {
  font-size: 1rem;
  opacity: 0.9;
  margin: 0;
}

.date-card .month {
  font-size: 1.5rem;
  font-weight: 4000;
  margin: 0.5rem 0;
}

.date-card .day {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  margin: 0.5rem 0;
}

.date-card .subject {
  font-size: 1rem;
  opacity: 0.9;
  margin: 0.5rem 0 0;
}

/* Book Class Section */
.sidebar-button {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1rem;
  background-color: #f7fafc;
  border: none;
  border-radius: 1rem;
  margin-bottom: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.sidebar-button:hover {
  background-color: #cb6ce6;
  transform: translateX(4px);
}

.sidebar-button .icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #e2e8f0;
  border-radius: 0.75rem;
  color: #4a5568;
}

.sidebar-button span {
  flex: 1;
  text-align: left;
  color: #2d3748;
  font-weight: 600;
  font-size: 1.125rem;
}

/* Message Section */
.message-button {
  background: linear-gradient(180deg, #2ecac8 0%, #338886 100%);
  color: white;
  height: 100px;
}

.message-button:hover {
  background-color: #6d28d9;
}

.message-button .icon {
  background-color: white;
}

.message-button span {
  color: white;
}

.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;
}

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

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

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

  .badges {
    justify-content: center;
  }

  .practice-mock {
    flex-direction: column;
    align-items: flex-start;
  }

  .mock-image {
    height: auto;
    width: 100%;
    max-width: 280px;
  }
}
