/* Basic reset and typography */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  /* A subtle background gradient */
  background: linear-gradient(to bottom, #f5fafe, #fff);
  color: #333;
  line-height: 1.6;
}

/* Header styling */
header {
  text-align: center;
  padding: 3rem 1rem 2rem 1rem;
  /* Vibrant gradient header */
  background: linear-gradient(135deg, #8EC5FC 0%, #E0C3FC 100%);
  color: #fff;
  /* Slight box-shadow to separate from body */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

header h1 {
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-size: 2.2rem;
  letter-spacing: 1px;
}

.subtitle {
  font-weight: 300;
  color: #fefefe;
  max-width: 600px;
  margin: 0.5rem auto 0 auto;
  opacity: 0.9;
}

/* Intro section */
.intro {
  padding: 2.5rem 1rem;
  max-width: 900px;
  margin: 1.5rem auto;
  text-align: center;
  background: #f7f9fc;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.intro p {
  margin-bottom: 1.25rem;
  color: #444;
  line-height: 1.7;
}

/* Techniques container */
.techniques {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
}

/* Card styling */
.card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.6s ease;
  position: relative;
}

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

.card h2 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.brief-description {
  margin-bottom: 1rem;
  color: #555;
  font-weight: 400;
}

.details li {
  margin-bottom: 0.5rem;
}

.quip {
  font-style: italic;
  color: #777;
  margin-bottom: 1rem;
}

/* Learn More Button */
.learn-more-btn {
  padding: 0.5rem 0.75rem;
  border: none;
  background: #367CF7;
  color: #fff;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s ease-in-out;
}

.learn-more-btn:hover {
  background: #2c65c5;
}

/* Extended (hidden by default) */
.extended {
  margin-top: 1rem;
  color: #444;
  padding: 0.75rem;
  border-left: 3px solid #367CF7;
  background: #f9faff;
  border-radius: 4px;
}

.hidden {
  display: none;
}

/* Fade-in effect class */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
}

/* When .fade-in is removed, the card is fully visible */
.card:not(.fade-in) {
  transform: translateY(0);
  opacity: 1;
}

/* Quiz section styling */
.quiz-section {
  max-width: 600px;
  margin: 0 auto 2rem auto;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  padding: 1.5rem;
  text-align: center;
}

.quiz-section h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.quiz-choices {
  list-style: none;
  margin-bottom: 1rem;
}

.quiz-choices li {
  margin: 0.5rem 0;
}

.quiz-btn {
  padding: 0.5rem 0.75rem;
  border: none;
  background: #FFB20F;
  color: #fff;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s ease-in-out;
}

.quiz-btn:hover {
  background: #cc8a0c;
}

.feedback {
  margin-top: 1rem;
  font-weight: 600;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem 1rem;
  background: #f9f9f9;
  border-top: 1px solid #ddd;
  color: #555;
  font-size: 0.95rem;
}

footer p {
  margin: 0.5rem 0;
}

footer a {
  color: #367CF7;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .techniques {
    grid-template-columns: 1fr;
  }
}