/* Content Section Styles */
.content-section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #ffffff;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  border: 1px solid #e5e7eb;
}

.h1-header-container {
  margin-bottom: 1rem;
}

.h1-header-container h1, 
#ai-tools .h1-header-container h1 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 0.5rem 0;
  line-height: 1.2;
}

.content-section p {
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Section content styling */
.section-content {
  padding: 0;
}

/* Remove extra spacing from nested sections */
.section-content > div:first-child {
  margin-top: 0;
}

.section-content > div:last-child {
  margin-bottom: 0;
}

/* Signup/Login Box Styles */
.signup-login-box {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  margin-top: 0.5rem;
}

.signup-login-box span {
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 500;
}

.signup-link, .login-link {
  color: #ffffff;
  text-decoration: underline;
  font-weight: 600;
}

.signup-link:hover, .login-link:hover {
  color: #e5e7eb;
}

/* Accordion Styles */
.accordion-item {
  margin-bottom: 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  overflow: hidden;
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: #f9fafb;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.accordion-header:hover {
  background: #f3f4f6;
}

.accordion-header.locked {
  cursor: not-allowed;
  background: #fef3c7;
}

.accordion-header.locked:hover {
  background: #fde68a;
}

.accordion-content {
  padding: 0 1rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion-item.open .accordion-content {
  max-height: 1000px;
  padding: 1rem;
}

.accordion-item.open .toggle-icon {
  transform: rotate(180deg);
}

.toggle-icon {
  transition: transform 0.3s ease;
}

.lock-icon, .unlock-icon {
  color: #6b7280;
}

.accordion-header.locked .lock-icon {
  color: #d97706;
}

/* Collapsible Content Styles */
.collapsible-content-wrapper {
  max-height: 300px;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.collapsible-content-wrapper.expanded {
  max-height: none;
}

.show-all-link-container {
  text-align: center;
  margin-top: 1rem;
}

/* What You Will Learn Section Styles */
.content-section ul.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  list-style: none;
  padding: 0;
}

@media (min-width: 768px) {
  .content-section ul.grid {
      grid-template-columns: 1fr 1fr;
  }
}

.content-section ul.grid li {
  list-style: none;
}

.content-section .flex.items-start {
  display: flex;
  align-items: flex-start;
}

.content-section .flex.items-start svg {
  margin-right: 0.5rem;
  margin-top: 0.25rem;
  flex-shrink: 0;
}

/* How to Learn Section - Ensure it's a separate box */
#how-to-learn {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #ffffff;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  border: 1px solid #e5e7eb;
  clear: both;
  display: block;
}

/* How to Learn Section Content Styling */
#how-to-learn .section-content h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1f2937;
  margin: 1.5rem 0 1rem 0;
  line-height: 1.3;
}

#how-to-learn .section-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #374151;
  margin: 1.25rem 0 0.75rem 0;
  line-height: 1.3;
}

#how-to-learn .section-content h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #374151;
  margin: 1rem 0 0.5rem 0;
  line-height: 1.3;
}

#how-to-learn .section-content p {
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 1rem;
}

#how-to-learn .section-content ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

#how-to-learn .section-content ul li {
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 0.5rem;
  list-style-type: disc;
}

#how-to-learn .section-content ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

#how-to-learn .section-content ol li {
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 0.5rem;
  list-style-type: decimal;
}

#how-to-learn .section-content blockquote {
  border-left: 4px solid #3b82f6;
  padding-left: 1rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #6b7280;
}

#how-to-learn .section-content strong {
  font-weight: 600;
  color: #1f2937;
}

#how-to-learn .section-content em {
  font-style: italic;
}

#how-to-learn .section-content a {
  color: #3b82f6;
  text-decoration: underline;
}

#how-to-learn .section-content a:hover {
  color: #1d4ed8;
}

/* AI Tools Card Styling */
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  line-clamp: 3;
  overflow: hidden;
}

.ai-tools-image {
  width: 100%;
  height: initial;
  aspect-ratio: 1;
  object-fit: cover;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .content-section {
      padding: 1rem;
  }
  
  .h1-header-container h1 {
      font-size: 1.5rem;
  }
  
  #how-to-learn .section-content h2 {
      font-size: 1.25rem;
  }
  
  #how-to-learn .section-content h3 {
      font-size: 1.125rem;
  }
}
