* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #4f46e5;
  --primary-light: #818cf8;
  --primary-lightest: #eef2ff;
  --text: #1f2937;
  --text-light: #4b5563;
  --bg: #f9fafb;
  --card-bg: #ffffff;
  --border: #e5e7eb;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --radius: 0.5rem;
  --transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  position: relative;
}

/* Parent Guide Section */
.parent-guide {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.03) 0%, rgba(79, 70, 229, 0.05) 100%);
  border-radius: 1rem;
  margin: 3rem 0;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.parent-guide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #4f46e5, #818cf8);
}

.guide-header {
  text-align: center;
  margin-bottom: 2.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.guide-header h2 {
  font-size: 1.875rem;
  color: var(--text);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.guide-header h2 i {
  color: var(--primary);
}

.guide-subtitle {
  color: var(--text-light);
  font-size: 1.125rem;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

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

.guide-card {
  background: var(--card-bg);
  border-radius: 0.75rem;
  padding: 1.75rem;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  display: flex;
  gap: 1.25rem;
  position: relative;
  overflow: hidden;
}

.prompt-card {
  background: var(--card-bg);
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.prompt-card img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 0.75rem 0.75rem 0 0;
}

.guide-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-light);
}

.guide-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  position: relative;
  box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.2);
}

.guide-number {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ef4444;
  color: white;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.guide-content {
  flex: 1;
}

.guide-card h3 {
  font-size: 1.25rem;
  color: var(--text);
  margin: 0 0 0.75rem 0;
  font-weight: 700;
  line-height: 1.3;
}

.guide-card p {
  color: var(--text-light);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0;
}

.guide-tip {
  background: rgba(129, 140, 248, 0.1);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-top: 2rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  border-left: 4px solid var(--primary);
}

.guide-tip i {
  color: var(--primary);
}

/* Example Images in Guide Card */
.guide-card .example-images {
  display: flex;
  gap: 1rem;
  margin: 1rem 0;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}

.guide-card .example-image-container {
  background: white;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  width: 120px;
  max-width: 45%;
  flex: 0 0 auto;
  margin: 0.5rem 0;
  display: flex;
  flex-direction: column;
}

.guide-card .example-image {
  width: 100%;
  height: 0;
  padding-bottom: 133.33%; /* 4:3 aspect ratio */
  position: relative;
  overflow: hidden;
}

.guide-card .example-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.guide-card .image-caption {
  padding: 0.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-light);
  background: white;
  margin: 0;
  border-top: 1px solid var(--border);
}

.guide-card p {
  margin: 0.5rem 0 1rem;
  color: var(--text);
  line-height: 1.6;
  font-size: 0.95rem;
}

.example-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.example-image-container {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.example-image-container:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.example-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 3/4;
}

.image-caption {
  padding: 1rem;
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-light);
  background: white;
  margin: 0;
  border-top: 1px solid var(--border);
}

.example-instruction {
  background: rgba(129, 140, 248, 0.1);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-top: 2rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  border-left: 4px solid var(--primary);
}

.example-instruction i {
  color: var(--primary);
  font-size: 1.25rem;
  margin-top: 0.2rem;
}

.example-instruction p {
  margin: 0;
  color: var(--text);
  line-height: 1.6;
}

@media (max-width: 640px) {
  .example-section {
    padding: 1.5rem 1rem;
    margin: 2rem 0;
  }
  
  .example-images {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .example-section h2 {
    font-size: 1.5rem;
  }
  
  .example-subtitle {
    font-size: 1rem;
  }
}

.guide-tip p {
  margin: 0;
  color: var(--text);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.guide-tip strong {
  color: var(--primary);
}

.banner-pulse {
  animation: pulse 2s infinite;
  box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.15);
  transition: box-shadow 0.3s;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.18);
  }
  70% {
    box-shadow: 0 0 0 18px rgba(79, 70, 229, 0.02);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.18);
  }
}

.banner-pulse {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f5ff;
  border-radius: 1rem;
  margin: 0.5rem 0;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
}

.banner-pulse img {
  width: 100%;
  max-width: 100%;
  border-radius: 1rem;
  display: block;
}

.banner-pulse a {
  display: block;
  width: 100%;
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .parent-guide {
    padding: 2rem 1.25rem;
    margin: 2.5rem -1.25rem;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  
  .guide-header h2 {
    font-size: 1.5rem;
  }
  
  .guide-subtitle {
    font-size: 1rem;
  }
  
  .guide-cards {
    grid-template-columns: 1fr;
  }
  
  .guide-card {
    padding: 1.5rem;
  }
  
  .guide-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    font-size: 1.1rem;
  }
  
  .guide-tip {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.25rem;
  }
}

.header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}

.header h1 {
  color: var(--primary);
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-weight: 700;
}

.header h1 i {
  color: var(--primary);
  animation: sparkle 2s ease-in-out infinite;
}

.header p {
  color: var(--text-light);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

@keyframes sparkle {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
  }
  50% {
    transform: scale(1.1) rotate(10deg);
  }
}

.header-content p {
  color: var(--text-light);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.search-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 20px;
}

.search-container {
  position: relative;
  flex: 1;
  max-width: 400px;
}

.search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #a0aec0;
  font-size: 1.1rem;
}

.search-input {
  width: 100%;
  padding: 15px 15px 15px 45px;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
  background: white;
}

.stats {
  background: rgba(255, 255, 255, 0.9);
  padding: 10px 20px;
  border-radius: 20px;
  font-weight: 600;
  color: #4a5568;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.parent-guide {
  background-color: #f9f5ff;
  border-radius: 15px;
  margin: 20px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.collapsible {
  cursor: pointer;
  padding: 20px 25px;
  transition: all 0.3s ease;
  background: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.collapsible:hover {
  background-color: #f8f5ff;
}

.collapsible.active {
  background-color: #f0e6ff;
}

.collapsible .toggle-icon {
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  transition: transform 0.3s ease;
}

.collapsible.active .toggle-icon {
  transform: translateY(-50%) rotate(180deg);
}

/* Main collapsible content */
.guide-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  padding: 0 25px;
  background: white;
  border-top: 1px solid transparent;
}

.guide-content.expanded {
  border-top-color: #eee;
}

/* Guide cards container */
.guide-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* Individual guide card */
.guide-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  display: flex;
  gap: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e2e8f0;
}

.guide-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

/* Guide card icon */
.guide-icon {
  position: relative;
  width: 40px;
  height: 40px;
  background: #f0f4ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4f46e5;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.guide-number {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #4f46e5;
  color: white;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
}

/* Guide card content */
.guide-card-content {
  flex: 1;
}

.guide-card-content h3 {
  margin: 0 0 0.5rem 0;
  color: #1e293b;
  font-size: 1.1rem;
}

.guide-card-content p {
  margin: 0;
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Guide tip */
.guide-tip {
  background: #f8fafc;
  border-left: 4px solid #4f46e5;
  padding: 1rem 1.25rem;
  border-radius: 0 6px 6px 0;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1rem;
}

.guide-tip i {
  color: #4f46e5;
  margin-top: 0.2rem;
}

.guide-tip p {
  margin: 0;
  color: #334155;
  font-size: 0.95rem;
  line-height: 1.6;
}

.guide-tip strong {
  color: #4f46e5;
}

.guide-header {
  position: relative;
  padding-right: 40px;
}

.prompts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
  padding: 0.25rem;
}

@media (max-width: 900px) {
  .prompts-grid {
    grid-template-columns: 1fr;
  }
}

.prompt-card {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--border);
  position: relative;
  padding-bottom: 50px; /* Space for the copy button */
}

.prompt-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  opacity: 0;
  transition: var(--transition);
}

.prompt-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--primary-light);
}

.prompt-card:hover::before {
  opacity: 1;
}

.card-header {
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%);
  border-bottom: 1px solid #eef2ff;
  min-height: 60px;
}

.career-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
}

.career-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  background-size: 200% 200%;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.prompt-card:hover .career-icon {
  transform: scale(1.05);
  animation: gradientBG 3s ease infinite;
}

@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.career-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  margin: 0;
}

.copy-btn {
  background: linear-gradient(135deg, #8B5CF6, #3B82F6);
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.copy-btn:hover {
  background: linear-gradient(135deg, #7C3AED, #2563EB);
  transform: scale(1.05);
}

.copy-btn:active {
  transform: scale(0.95);
}

.preview-image-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f8f9fa;
  border-radius: 0.5rem 0.5rem 0 0;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  min-height: 300px;
  max-height: 450px;
}

.preview-image {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
  background-color: white;
  display: block;
  margin: 0 auto;
  object-position: center;
}

.prompt-card:hover .preview-image {
  transform: scale(1.02);
}

.prompt-text {
  padding: 0.75rem 1.25rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-light);
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  border-top: 1px solid var(--border);
  background-color: #f8f9fa;
  margin: 0;
  border-radius: 0 0 0.75rem 0.75rem;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e0 #f1f5f9;
}

.prompt-text::-webkit-scrollbar {
  height: 4px;
}

.prompt-text::-webkit-scrollbar-track {
  background: #f1f5f9;
}

.prompt-text::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 2px;
}

.prompt-text::-webkit-scrollbar-thumb:hover {
  background: #a0aec0;
}

.prompt-text::-webkit-scrollbar {
  width: 4px;
}

.prompt-text::-webkit-scrollbar-track {
  background: #f1f5f9;
}

.prompt-text::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 2px;
}

.prompt-text::-webkit-scrollbar {
  width: 6px;
}

.prompt-text::-webkit-scrollbar-track {
  background: #f7fafc;
  border-radius: 3px;
}

.prompt-text::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 3px;
}

.prompt-text::-webkit-scrollbar-thumb:hover {
  background: #a0aec0;
}

.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: linear-gradient(135deg, #48bb78, #38a169);
  z-index: 10000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.2);
  min-width: 280px;
  max-width: 90%;
  text-align: center;
  color: white;
  padding: 15px 25px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.toast i {
  font-size: 1.2em;
}

.toast.show {
  transform: translateX(0);
}

.no-results {
  text-align: center;
  padding: 60px 20px;
  color: #718096;
  font-size: 1.2rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  margin: 20px 0;
}

.no-results i {
  font-size: 3rem;
  margin-bottom: 20px;
  color: #a0aec0;
}


  .container {
    padding: 15px;
  }

  .header-content h1 {
    font-size: 2rem;
    flex-direction: column;
    gap: 10px;
  }

  .search-section {
    flex-direction: column;
    align-items: stretch;
  }

  .search-container {
    max-width: none;
  }



  .prompt-card {
    padding: 20px;
  }

  .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .copy-btn {
    align-self: flex-end;
  }

  .toast {
    bottom: 20px;
    right: 20px;
    left: 20px;
    transform: translateY(100px);
  }

  .toast.show {
    transform: translateY(0);
  }
}

@media (max-width: 767px) {
  .container {
    padding: 1.25rem;
  }
  
  .header {
    padding: 1.5rem 0;
    margin-bottom: 2rem;
  }
  
  .header h1 {
    font-size: 1.75rem;
  }
  
  .header p {
    font-size: 1rem;
  }
  
  .prompt-card {
    padding: 1rem;
  }
  
  .career-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    font-size: 1.1rem;
  }
  
  .career-name {
    font-size: 1.0625rem;
  }
  
  .prompt-text {
    font-size: 0.8125rem;
    padding: 0.75rem;
    max-height: 180px;
  }
  
  .search-section {
    margin-bottom: 1.5rem;
  }
  
  .search-container {
    max-width: 100%;
  }
  
  .search-input {
    padding: 0.75rem 0.75rem 0.75rem 2.5rem;
    font-size: 0.9375rem;
  }
  
  .search-icon {
    left: 0.75rem;
  }
}
