/* css/tutorials.css */

/* Search Bar Styling */
.search-container {
  margin-bottom: 2rem;
  text-align: center;
}

#tutorial-search {
  width: 100%;
  max-width: 400px;
  padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  border-radius: 50px;
  font-size: 1rem;
  transition: box-shadow 0.2s;
}

#tutorial-search:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(78, 144, 187, 0.4);
}

/* Tutorial Card Styling */
.tutorial-card {
  margin-bottom: 1.5rem;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  overflow: hidden; /* Important for border-radius on children */
}

.tutorial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.tutorial-card summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  list-style: none; /* Hide default marker */
}

.tutorial-card summary::-webkit-details-marker {
  display: none; /* Hide default marker for Safari */
}

/* Custom expand/collapse marker */
.tutorial-card summary::after {
  content: '+';
  font-size: 1.5rem;
  margin-left: auto;
  transition: transform 0.3s ease;
}

.tutorial-card[open] summary::after {
  transform: rotate(45deg);
}

.tutorial-icon {
  font-size: 1.5rem;
}

.tutorial-title-block {
  display: flex;
  flex-direction: column;
}

.tutorial-title {
  font-size: 1.2rem;
}

.tutorial-subtitle {
  font-size: 0.9rem;
  color: #666;
  font-weight: 400;
  margin-top: 0.25rem;
}

/* Content inside the card */
.tutorial-content {
  padding: 0 1.5rem 1.5rem 1.5rem;
  border-top: 1px solid #e0e0e0;
}

.tutorial-steps {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.tutorial-steps li {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px dashed #eee;
}

.tutorial-steps li:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.tutorial-steps img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.tutorial-steps p {
  margin: 0;
  line-height: 1.6;
}

/* Add this to css/tutorials.css to style the numbered steps */

.tutorial-steps {
  /* Re-enables the list counter */
  list-style: none;
  counter-reset: step-counter;
  padding-left: 0;
  margin: 0;
}

.tutorial-steps li {
  /* Creates space for our custom number */
  padding-left: 3.5rem;
  position: relative;
}

/* This is the custom-styled number */
.tutorial-steps li::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 1.25rem; /* Aligns with the first line of text */
  
  /* Styling for the number circle */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: #e3f2fd; /* A light blue */
  color: #1565c0; /* A darker blue */
  font-weight: bold;
  font-size: 1.2rem;
}
.cta-button.cta-button-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 0.5rem;
    text-decoration: none;
}