/* ===================================
   BASE STYLES
   =================================== */
body {
  font-family: 'Mitr', sans-serif;
  color: #3C3C3C;
  margin: 0;
  padding: 0;
}

/* ===================================
   NAVBAR
   =================================== */
.nav-color {
  background: linear-gradient(to right, #4169e1, #9400d3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(6px);
}

.navbar-brand {
  color: #fff !important;
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-logo {
  width: 32px;
  height: auto;
}

.navbar-logo:hover {
  transform: scale(1.3);
  transition: scale 0.3s ease, transform 0.3s ease;
  filter: drop-shadow(0 8px 20px rgba(255, 255, 255, 0.5));
}

.navbar-nav .nav-link {
  color: #fff !important;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 6px;
  position: relative;
  transition: all 0.3s ease;
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 6px;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  width: 64%;
  height: 3px;
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
  opacity: 0;
  transition: transform 0.28s cubic-bezier(.2, .9, .2, 1), opacity 0.18s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link.active {
  color: #fff !important;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.2);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link:focus::after,
.navbar-nav .nav-link.active::after {
  transform: translateX(-50%) scaleX(1);
  opacity: 1;
}

/* Responsive: เส้นใต้อยู่ด้านซ้ายเมื่อเป็นแนวตั้ง */
@media (max-width: 991.98px) {
  .navbar-nav .nav-link::after {
    left: 16px;
    transform: translateX(0) scaleX(0);
    transform-origin: left;
    width: calc(100% - 32px);
  }

  .navbar-nav .nav-link:hover::after,
  .navbar-nav .nav-link:focus::after,
  .navbar-nav .nav-link.active::after {
    transform: translateX(0) scaleX(1);
  }
}

/* ===================================
   ANIMATIONS
   =================================== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================================
   HERO SECTION
   =================================== */
.hero-section h1 {
  font-size: 2.5rem;
  font-weight: 600;
}

.hero-section h4 {
  font-size: 1.125rem;
  font-weight: 300;
}

/* ===================================
   INTRODUCTION SECTION
   =================================== */
.introduction-section {
  background: linear-gradient(180deg, #ffffff, #CFE5FC);
  padding: 80px 20px;
}

.start-guide-banner {
  background: linear-gradient(90deg, rgba(65, 105, 225, 0.08), rgba(148, 0, 211, 0.05));
  border: 1px solid rgba(65, 105, 225, 0.08);
  padding: 2rem 1.5rem;
}

.start-guide-banner h2 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.start-guide-banner p {
  font-size: 1rem;
  color: #334155;
  margin-bottom: 0;
}

/* ===================================
   CARD STEPS
   =================================== */
.card-step {
  border-radius: 12px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 6px 18px rgba(22, 49, 180, 0.06);
  background: rgba(255, 255, 255, 0.95);
}

.card-step:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 14px 40px rgba(22, 49, 180, 0.12);
}

.card-step .icon {
  margin-bottom: 4px;
}

/* ===================================
   PROMPT GUIDELINES SECTION
   =================================== */
.prompt-guidelines {
  background: linear-gradient(180deg, #E7CFEA, #ffffff);
  padding: 60px 20px;
}

/* Guideline Icons - สำหรับ Navbar style cards */
.guideline-icon1,
.guideline-icon2,
.guideline-icon3 {
  font-size: 1.5rem;
  margin-right: 12px;
}

.guideline-icon1 {
  color: #4169e1;
  background: #dcedff;
}

.guideline-icon2 {
  color: #22c55e;
  background: #d1fae5;
}

.guideline-icon3 {
  color: #8b5cf6;
  background: #ede9fe;
}

/* ===================================
   USE CASES SECTION (GUIDELINE PANELS)
   =================================== */
.guideline-panel {
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(18, 38, 63, 0.06);
  min-height: 260px;
}

/* Gradient Backgrounds */
.bg-blue-gradient {
  background: linear-gradient(135deg, #eff6ff 0%, #c5daf6 100%);
}

.bg-green-gradient {
  background: linear-gradient(135deg, #ecfdf5 0%, #bbf7d0 100%);
}

.bg-purple-gradient {
  background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
}

/* Panel Icons - สำหรับ Use Cases cards */
.guidelinepanel-icon1,
.guidelinepanel-icon2,
.guidelinepanel-icon3 {
  font-size: 1.5rem;
}

.guidelinepanel-icon1 {
  color: #4169e1;
}

.guidelinepanel-icon2 {
  color: #22c55e;
}

.guidelinepanel-icon3 {
  color: #8b5cf6;
}

.guideline-panel ul li {
  color: #1f2937;
}

.prompt-label {
  color: #111827;
}

.prompt-sample {
  background: #0f1724;
  color: #e6eef8;
  padding: 0.9rem 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
}

/* ===================================
   CODE BLOCK
   =================================== */
.code-block {
  background: #1a202c;
  border-radius: 8px;
  padding: 1rem;
  color: #e2e8f0;
  font-family: 'Courier New', monospace;
  overflow-x: auto;
}

/* ===================================
   TRICKS SECTION
   =================================== */
.tricks-section .trick-card1,
.tricks-section .trick-card2,
.tricks-section .trick-card3,
.tricks-section .trick-card4 {
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  min-height: 120px;
}

.tricks-section .trick-card1 {
  background: linear-gradient(135deg, #eff6ff 0%, #f6c5c5 100%);
}

.tricks-section .trick-card2 {
  background: linear-gradient(135deg, #ecfdf5 0%, #bbf7d0 100%);
}

.tricks-section .trick-card3 {
  background: linear-gradient(135deg, #eff6ff 0%, #c5daf6 100%);
}

.tricks-section .trick-card4 {
  background: linear-gradient(135deg, #eff6ff 0%, #f6edc5 100%);
}

.tricks-section .trick-card1:hover,
.tricks-section .trick-card2:hover,
.tricks-section .trick-card3:hover,
.tricks-section .trick-card4:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 50px rgba(2, 6, 23, 0.45);
}

/* Trick Icons */
.trick-icon1,
.trick-icon2,
.trick-icon3,
.trick-icon4 {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.trick-icon1 {
  color: #ff4f4f;
}

.trick-icon2 {
  color: #22c55e;
}

.trick-icon3 {
  color: #4169e1;
}

.trick-icon4 {
  color: #c5b222;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 768px) {
  .start-guide-banner h2 {
    font-size: 1.5rem;
  }

  .start-guide-banner p {
    font-size: 0.95rem;
  }

  .guideline-panel {
    min-height: auto;
  }

  .trick-icon1,
  .trick-icon2,
  .trick-icon3,
  .trick-icon4 {
    width: 48px;
    height: 48px;
  }
}