@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500;700&family=Noto+Serif+TC:wght@600;700;900&display=swap');

/* Tailwind Base Reset & Variables */
:root {
  --primary: #1d4ed8; /* blue-700 */
  --primary-foreground: #eff6ff; /* blue-50 */
  --background: #ffffff;
  --foreground: #0f172a; /* slate-900 */
  --muted: #f1f5f9; /* slate-100 */
  --muted-foreground: #64748b; /* slate-500 */
  --border: #e2e8f0; /* slate-200 */
  
  /* Custom Colors */
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-200: #bfdbfe;
  --blue-300: #93c5fd;
  --blue-400: #60a5fa;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --blue-800: #1e40af;
  --blue-900: #1e3a8a;
  
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
}

* {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: var(--border);
}

body {
  margin: 0;
  font-family: 'Noto Sans TC', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Noto Serif TC', serif;
}

/* Utility Classes Replacement */
.min-h-screen { min-height: 100vh; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-grow { flex-grow: 1; }
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
@media (min-width: 640px) { .container { max-width: 640px; padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 768px) { .container { max-width: 768px; } }
@media (min-width: 1024px) { .container { max-width: 1024px; padding-left: 2rem; padding-right: 2rem; } }
@media (min-width: 1280px) { .container { max-width: 1440px; } }
@media (min-width: 1536px) { .container { max-width: 1600px; } }

/* Text Colors */
.text-white { color: white; }
.text-slate-50 { color: var(--slate-50); }
.text-slate-300 { color: var(--slate-300); }
.text-slate-400 { color: var(--slate-400); }
.text-slate-500 { color: var(--slate-500); }
.text-slate-600 { color: var(--slate-600); }
.text-slate-700 { color: var(--slate-700); }
.text-slate-900 { color: var(--slate-900); }

.text-blue-100 { color: var(--blue-100); }
.text-blue-200 { color: var(--blue-200); }
.text-blue-400 { color: var(--blue-400); }
.text-blue-600 { color: var(--blue-600); }

.text-red-500 { color: #ef4444; }
.text-green-500 { color: #22c55e; }

/* Text Opacity Variants */
.text-blue-200\/80 { color: rgba(191, 219, 254, 0.8); }

/* Font Weights */
.font-medium { font-weight: 500; }
.font-bold { font-weight: 700; }

/* Text Sizes */
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }

/* Spacing */
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mt-1 { margin-top: 0.25rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-3 { margin-right: 0.75rem; }
.ml-2 { margin-left: 0.5rem; }
.space-x-4 > * + * { margin-left: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }
.flex-shrink-0 { flex-shrink: 0; }

/* Flexbox Alignment */
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

/* Typography */
.leading-relaxed { line-height: 1.625; }

.absolute { position: absolute; }
.relative { position: relative; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.z-0 { z-index: 0; }
.pointer-events-none { pointer-events: none; }

/* Animations */
@keyframes pulse { 50% { opacity: .5; } }
.animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }

@keyframes bounce { 0%, 100% { transform: translateY(-25%); animation-timing-function: cubic-bezier(0.8,0,1,1); } 50% { transform: none; animation-timing-function: cubic-bezier(0,0,0.2,1); } }
.animate-bounce { animation: bounce 1s infinite; }

@keyframes ping { 75%, 100% { transform: scale(2); opacity: 0; } }
.animate-ping { animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite; }

.delay-700 { animation-delay: 700ms; }

/* Component Styles */

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #000; /* Fallback */
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('images/hero-bg.png'); /* Adjusted path */
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 10;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.hero-card {
  max-width: 48rem; /* max-w-3xl */
  margin: 0 auto;
  text-align: center;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  padding: 2rem 1.5rem;
  border-radius: 1.5rem; /* 2xl */
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
}

.hero-title {
  font-family: 'Noto Serif TC', serif;
  font-size: 2.5rem; /* Increased */
  font-weight: 900;
  color: var(--slate-900);
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
  line-height: 1.2;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding-bottom: 0.1em; /* Prevent descender clipping */
}
@media (min-width: 768px) { .hero-title { font-size: 4rem; /* Increased */ } }

.hero-subtitle {
  font-family: 'Noto Serif TC', serif;
  font-size: 1.35rem; /* Increased */
  font-weight: 700;
  color: var(--slate-700);
  margin-bottom: 1.5rem;
  line-height: 1.5;
  letter-spacing: 0.01em;
}
@media (min-width: 768px) { .hero-subtitle { font-size: 1.75rem; /* Increased */ } }

.hero-desc {
  font-size: 1.25rem; /* Increased */
  color: var(--slate-600);
  margin-bottom: 1.5rem;
  line-height: 1.75;
  max-width: 42rem; /* 2xl */
  margin-left: auto;
  margin-right: auto;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 2rem;
  background-color: var(--blue-600);
  color: white;
  font-weight: 600;
  border-radius: 9999px;
  transition: all 0.3s;
  font-size: 1.125rem;
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  background-color: var(--blue-700);
  box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}

/* Market Section */
.market-section {
  padding: 2rem 0;
  background-color: var(--slate-50);
}

.section-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.section-title {
  font-family: 'Noto Serif TC', serif;
  font-size: 2.5rem; /* Increased */
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 0.5rem;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.section-subtitle {
  font-family: 'Noto Serif TC', serif;
  font-size: 1.35rem; /* Increased */
  color: var(--slate-500);
  line-height: 1.5;
  letter-spacing: 0.05em;
}

/* Market Story Card */
.market-story-card {
  background-color: #0f172a; /* Dark Slate 900 */
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3); /* Stronger shadow */
  border: 1px solid var(--slate-800);
  margin-bottom: 2rem;
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) {
  .story-grid {
    grid-template-columns: 1fr 1fr; /* Balanced columns */
    align-items: center; /* Center vertically */
  }
}

.story-image-col {
  position: relative;
  width: 100%;
  aspect-ratio: 10/9; /* Slightly shorter than square to crop bottom bullets */
  overflow: hidden;
}

.story-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  position: absolute;
  inset: 0;
}

.story-content-col {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (min-width: 1024px) { .story-content-col { padding: 3rem; } }

.story-title {
  font-family: 'Noto Serif TC', serif;
  font-size: 2rem;
  font-weight: 700;
  color: white; /* White text */
  margin-bottom: 1rem;
}

.story-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  background-color: rgba(239, 68, 68, 0.2); /* Red-500/20 */
  color: #f87171; /* Red-400 */
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 9999px;
  margin-bottom: 1.5rem;
  align-self: flex-start;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.story-text {
  font-size: 1.125rem;
  color: var(--slate-300); /* Light gray text */
  line-height: 1.8;
}

.market-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 80rem; /* 5xl -> 7xl */
  margin: 0 auto 1.5rem auto;
}
@media (min-width: 768px) { .market-grid { grid-template-columns: repeat(2, 1fr); } }

.market-card {
  border-radius: 1.5rem;
  padding: 1.5rem; /* Reduced from 2rem */
  transition: all 0.3s;
  border: 1px solid transparent;
}
.market-card:hover {
  transform: translateY(-0.25rem);
}

.card-white {
  background-color: white;
  border-color: var(--slate-200);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.card-blue {
  background-color: var(--blue-900);
  color: white;
  box-shadow: 0 20px 25px -5px rgba(30, 58, 138, 0.3);
  border-color: var(--blue-800);
}

.card-header {
  text-align: center;
  margin-bottom: 1.5rem; /* Reduced from 2rem */
  padding-bottom: 1.5rem; /* Reduced from 2rem */
  border-bottom: 1px solid;
}
.card-white .card-header { border-color: var(--slate-100); }
.card-blue .card-header { border-color: var(--blue-800); }

.card-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem auto; /* Reduced from 1.5rem */
}
.icon-bg-gray { background-color: var(--slate-100); color: var(--slate-600); }
.icon-bg-blue { background-color: var(--blue-800); color: var(--blue-400); }

.card-title {
  font-family: 'Noto Serif TC', serif;
  font-size: 1.75rem; /* Increased */
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.card-price {
  font-family: 'Noto Sans TC', sans-serif; /* Keep price sans-serif for clarity */
  font-size: 1.25rem; /* Increased */
  font-weight: 500;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem; /* Increased gap */
  text-align: center; /* Center alignment */
}

.info-box {
  padding: 1.5rem; /* Increased padding */
  border-radius: 1rem;
}
.bg-slate-50 { background-color: var(--slate-50); }
.bg-blue-700-50 { background-color: rgba(29, 78, 216, 0.5); }

.info-label {
  display: block;
  font-size: 1.125rem; /* Increased */
  margin-bottom: 0.5rem;
  font-weight: 600;
  opacity: 0.9;
}

/* Target content paragraphs within card body */
.card-body p {
  font-size: 1.2rem; /* Adjusted to fit */
  line-height: 1.6;
  white-space: nowrap; /* Force single line */
  letter-spacing: -0.02em; /* Tighten slightly */
}

.market-desc-box {
  max-width: 80rem; /* Increased to match grid width */
  margin: 3rem auto 0 auto;
  text-align: center;
  padding: 2rem 1.5rem; /* Reduced padding for mobile */
  background: linear-gradient(to bottom, #f8fafc, #ffffff);
  border: 1px solid var(--slate-200);
  border-radius: 1.5rem;
  position: relative;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
}
@media (min-width: 768px) { .market-desc-box { padding: 3rem 2rem; } }

.market-desc-box::before {
  content: '“';
  font-family: serif;
  font-size: 6rem; /* Reduced for mobile */
  color: var(--blue-100);
  position: absolute;
  top: -1rem;
  left: 1rem;
  line-height: 1;
  opacity: 0.5;
  pointer-events: none;
}
@media (min-width: 768px) { .market-desc-box::before { font-size: 8rem; left: 2rem; } }

.market-desc-text {
  font-size: 1.25rem;
  color: var(--slate-600);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.market-desc-highlight {
  font-family: 'Noto Serif TC', serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--blue-900);
  line-height: 1.5;
  background: linear-gradient(120deg, transparent 0%, transparent 100%);
  display: inline-block;
  position: relative;
}

.market-desc-highlight::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 8px;
  background-color: rgba(59, 130, 246, 0.15);
  z-index: -1;
}

/* Safety Section */
.safety-section {
  position: relative;
  background-color: var(--slate-900);
  padding: 2rem 0; /* Reduced from 3rem */
  overflow: hidden;
}

.safety-bg-glow {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.safety-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem; /* Reduced from 2.5rem */
  position: relative;
  z-index: 10;
}
@media (min-width: 1024px) { .safety-grid { grid-template-columns: repeat(2, 1fr); align-items: center; } }

.alert-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background-color: rgba(239, 68, 68, 0.1); /* red-500/10 */
  color: #f87171; /* red-400 */
  border-radius: 9999px;
  font-size: 1rem; /* Increased */
  font-weight: 500;
  border: 1px solid rgba(239, 68, 68, 0.2);
  margin-bottom: 1.5rem;
}

.safety-title {
  font-family: 'Noto Serif TC', serif;
  font-size: 2.5rem; /* Increased */
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
@media (min-width: 768px) { .safety-title { font-size: 3.25rem; /* Increased */ } }

.safety-subtitle {
  font-family: 'Noto Serif TC', serif;
  font-size: 1.75rem; /* Increased */
  color: var(--slate-400);
}

.safety-text {
  font-size: 1.25rem; /* Increased */
  color: var(--slate-300);
  line-height: 1.75;
}

.solution-box {
  background: rgba(30, 58, 138, 0.3); /* blue-900/30 */
  border: 1px solid rgba(59, 130, 246, 0.2); /* blue-500/20 */
  padding: 1.5rem;
  border-radius: 1rem;
}

.risk-card {
  display: flex;
  align-items: start;
  gap: 1rem;
  padding: 1.5rem;
  background-color: rgba(30, 41, 59, 0.5); /* slate-800/50 */
  border: 1px solid var(--slate-800);
  border-radius: 1rem;
  transition: all 0.3s;
}
.risk-card:hover {
  background-color: var(--slate-800);
  border-color: var(--slate-700);
}

.risk-card h3 {
  font-size: 1.35rem; /* Increased font size */
}

.risk-card p {
  font-size: 1.1rem; /* Increased font size */
}

.risk-icon {
  padding: 0.75rem;
  background-color: rgba(239, 68, 68, 0.1);
  border-radius: 0.75rem;
}

/* Industry Section */
.industry-section {
  padding: 2rem 0; /* Reduced from 3rem */
  background-color: white;
}

.benchmark-card {
  background: linear-gradient(to bottom right, #eff6ff, white);
  border: 1px solid var(--blue-100);
  border-radius: 2rem;
  padding: 1.5rem; /* Reduced from 2rem */
  margin-bottom: 1.5rem; /* Reduced from 2.5rem */
}

.benchmark-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 1024px) { .benchmark-grid { grid-template-columns: 2fr 1fr; } }

.benchmark-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: var(--blue-100);
  color: var(--blue-700);
  font-size: 0.875rem; /* Increased */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 0.5rem;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.check-item {
  display: flex;
  align-items: flex-start;
  color: var(--slate-700);
}

.stats-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
  padding: 1.5rem; /* Reduced from 2rem */
  background-color: white;
  border-radius: 1.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.comparison-table {
  width: 100%; /* Full width to match benchmark card */
  margin: 0;
  border: 1px solid var(--slate-200);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  overflow-x: auto; /* Enable horizontal scroll on mobile */
  -webkit-overflow-scrolling: touch;
}

.table-header {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1.5fr;
  background-color: var(--slate-50);
  border-bottom: 1px solid var(--slate-200);
  font-weight: 600;
  color: var(--slate-700);
  min-width: 600px; /* Ensure minimum width for readability */
}

.table-row {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1.5fr;
  border-bottom: 1px solid var(--slate-100);
  min-width: 600px; /* Ensure minimum width for readability */
}
.table-row:last-child { border-bottom: none; }

.table-cell {
  padding: 1rem; /* Reduced padding for mobile */
  font-size: 1rem; /* Reduced font size for mobile */
  text-align: center; /* Center text */
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (min-width: 768px) { 
  .table-cell { 
    padding: 1.5rem; 
    font-size: 1.25rem; 
  } 
}

/* Cases Section */
.cases-section {
  background-color: #0b1120; /* Darker slate */
  padding: 4rem 0;
  color: white;
}

.cases-section .section-title {
  color: white; /* Override default dark color */
}

.cases-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}
@media (min-width: 768px) { .cases-grid { grid-template-columns: repeat(2, 1fr); } }

.case-card {
  background-color: var(--slate-800);
  border: 1px solid var(--slate-700);
  border-radius: 1.5rem;
  overflow: hidden;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}
.case-card:hover {
  background-color: var(--slate-750);
  transform: translateY(-0.5rem);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
  border-color: var(--blue-500);
}

.case-image-wrapper {
  width: 100%;
  height: auto; /* Allow height to adjust to image */
  aspect-ratio: 4/3; /* Maintain a consistent aspect ratio */
  overflow: hidden;
  position: relative;
}

.case-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Ensure full image is visible */
  background-color: #000; /* Black background for letterboxing */
  transition: transform 0.5s ease;
}

.case-card:hover .case-image-wrapper img {
  transform: scale(1.05);
}

.case-content {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.timeline-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem; /* Reduced from 2rem */
  align-items: center;
}
@media (min-width: 1024px) { .timeline-grid { grid-template-columns: 1fr 1fr; } }

.timeline-list {
  position: relative;
  padding-left: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem; /* Reduced from 2rem */
}

.timeline-line {
  position: absolute;
  left: 0;
  top: -1.5rem;
  bottom: -1.5rem;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--blue-400) 10%, var(--blue-400) 90%, transparent);
}

.timeline-item {
  position: relative;
}

.timeline-dot {
  position: absolute;
  left: -2.35rem; /* Adjust based on padding and dot size */
  top: 0.25rem;
  width: 0.75rem;
  height: 0.75rem;
  background-color: var(--blue-500);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dot-inner {
  width: 1.5rem;
  height: 1.5rem;
  background-color: rgba(59, 130, 246, 0.3);
  border-radius: 50%;
  position: absolute;
  animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.image-card {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  aspect-ratio: 4/5;
}

.image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-content {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
}

/* Footer Section */
.footer-section {
  background-color: black;
  padding: 2rem 0; /* Reduced from 3rem */
  text-align: center;
  color: white;
}

.btn-white {
  display: inline-flex;
  align-items: center;
  padding: 1rem 3rem;
  background-color: white;
  color: black;
  font-weight: 700;
  border-radius: 9999px;
  font-size: 1.25rem; /* Increased */
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  margin-bottom: 1.5rem; /* Reduced from 2.5rem */
}
.btn-white:hover {
  background-color: var(--slate-200);
  transform: scale(1.05);
}

.footer-copyright {
  color: var(--slate-500);
  font-size: 1rem; /* Increased */
  border-top: 1px solid var(--slate-800);
  padding-top: 1.5rem; /* Reduced from 2rem */
}

/* Helper for Lucide Icons alignment */
.lucide {
  vertical-align: middle;
}

/* Carousel Styles */
.report-carousel-col {
    position: relative;
    background-color: white;
    border-radius: 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    padding: 0;
    height: 100%;
    min-height: 300px; /* Reduced height for mobile */
    display: flex;
    flex-direction: column;
}
@media (min-width: 768px) { .report-carousel-col { min-height: 500px; } }

.carousel-track-container {
    height: 100%;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.carousel-track {
    padding: 0;
    margin: 0;
    list-style: none;
    position: relative;
    height: 100%;
    transition: transform 0.5s ease-in-out;
    display: flex;
    width: 100%;
}

.carousel-slide {
    width: 100%;
    flex-shrink: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8fafc;
}

.carousel-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--slate-200);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 10;
    transition: all 0.2s;
    color: var(--slate-700);
}

.carousel-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    color: var(--blue-600);
}

.carousel-btn.prev { left: 15px; }
.carousel-btn.next { right: 15px; }

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.8);
    padding: 8px 12px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

.carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--slate-300);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s;
}

.carousel-indicator.current-slide {
    background: var(--blue-600);
    transform: scale(1.2);
}


.benchmark-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    height: 100%;
    padding-right: 1rem;
}

@media (min-width: 1024px) {
    .benchmark-content {
        padding-right: 3rem;
        gap: 2rem;
    }
}


/* Benchmark Content Typography Overrides */
.benchmark-content .benchmark-tag {
    font-size: 1rem; /* Increased from 0.875rem */
}

.benchmark-content h3 {
    font-size: 1.85rem; /* Increased from 1.5rem */
}

.benchmark-content p {
    font-size: 1.15rem; /* Increased from 1rem */
    line-height: 1.8;
}

.benchmark-content .check-item {
    font-size: 1.15rem; /* Increased from 1rem */
}


/* Trend Section */
.trend-section {
    background-color: #f8fafc; /* Light background to contrast with dark cases section */
    padding: 2rem 0; /* Reduced from 4rem */
}


/* Trend Content Column */
.trend-content-col {
    display: flex;
    flex-direction: column;
    gap: 1rem; /* Reduced from 2rem */
}

.trend-image-wrapper {
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.trend-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 16/9; /* Landscape aspect ratio */
}

.trend-text-content {
    padding: 0 1rem;
    text-align: left;
}

.trend-text-content h3 {
    font-family: 'Noto Serif TC', serif;
    font-size: 1.75rem; /* Reduced for mobile */
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 0.25rem; /* Reduced from 0.5rem */
    letter-spacing: -0.025em;
}
@media (min-width: 768px) { .trend-text-content h3 { font-size: 2.5rem; } }

.trend-text-content .trend-subtitle {
    font-size: 1.125rem;
    color: var(--blue-600);
    font-weight: 600;
    margin-bottom: 1rem; /* Reduced from 1.5rem */
    display: block;
    letter-spacing: 0.05em;
}

.trend-text-content p {
    font-size: 1.15rem;
    color: var(--slate-600);
    line-height: 1.6; /* Reduced from 1.8 */
    margin-bottom: 1rem; /* Reduced from 1.5rem */
}

.trend-text-content p:last-child {
    font-size: 1rem;
    color: var(--slate-500);
    border-left: 4px solid var(--blue-200);
    padding-left: 1rem;
    margin-top: 1rem; /* Reduced from 2rem */
    font-style: italic;
}

