@import url('https://fonts.googleapis.com/css2?family=Inter&display=swap');

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

.banner {
  background: linear-gradient(120deg, #7C5CFC 0%, #A5E6D8 100%);
}

.btn-white {
  background-color: white;
  color: #7C5CFC;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
}

.btn-transparent {
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
}

.btn-primary {
  background-color: #7C5CFC;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

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

.section-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #1f2937;
}

.topic-box,
.topic-box-locked {
  background-color: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  transition: box-shadow 0.3s ease;
  position: relative;
}

.topic-box:hover,
.topic-box-locked:hover {
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.topic-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(124, 92, 252, 0.1);
  border-radius: 0.75rem;
}

.lock-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(243, 244, 246, 0.7);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lock-overlay i {
  background-color: #9ca3af;
  border-radius: 9999px;
  padding: 0.625rem;
}

.feature-box {
  background-color: #d3bcbc;
  border-radius: 0.75rem;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  transition: box-shadow 0.3s ease;
  font-weight:bold;
}

.feature-box:hover {
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

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

.sidebar-box:hover{
  background-color: #7C5CFC;
  color: white;
  cursor: pointer;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

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

/* Add these to your existing CSS */
.search-input {
    width: 100%;
    /* padding: 0.5rem 2.5rem 0.5rem 1rem; */
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    outline: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: #7C5CFC;
    box-shadow: 0 0 0 3px rgba(124, 92, 252, 0.2);
}

.search-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

.pagination-container {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.pagination-container button {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    background-color: #f3f4f6;
    color: #4b5563;
    transition: all 0.2s ease;
}

.pagination-container button:hover {
    background-color: #e5e7eb;
}

.pagination-container button.active {
    background-color: #7C5CFC;
    color: white;
}

/* Pagination Styles */
#pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

#pagination button {
    min-width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

#pagination button:not(.active):hover {
    background-color: #e5e7eb;
}

#pagination button.active {
    background-color: #7C5CFC;
    color: white;
    font-weight: 600;
}

#pagination .prev-next {
    background-color: #f3f4f6;
}

#pagination .prev-next:hover {
    background-color: #e5e7eb;
}

#pagination span {
    color: #6b7280;
}