/* Extracted from use-cases.html <style> block */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Roboto", sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--background);
}
:root {
  --primary: #009688;
  --primary-dark: #00796b;
  --secondary: #4db6ac;
  --background: #e0f2f1;
  --surface: #ffffff;
  --on-surface: #004d40;
  --text-primary: #004d40;
  --text-secondary: rgba(0, 77, 64, 0.7);
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
header {
  background: var(--surface);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: box-shadow 0.3s ease;
}
header.scrolled {
  box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2),
    0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12);
}
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  min-height: 64px;
}
.logo {
  font-size: 24px;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}
.nav-links a:hover {
  background-color: rgba(25, 118, 210, 0.08);
}
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  cursor: pointer;
  width: 32px;
  height: 32px;
  z-index: 1100;
}
.hamburger span {
  height: 4px;
  width: 100%;
  background: var(--primary);
  margin: 4px 0;
  border-radius: 2px;
  transition: 0.3s;
}
@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    right: 24px;
    background: var(--surface);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    flex-direction: column;
    gap: 0;
    width: 200px;
    padding: 16px 0;
    z-index: 1001;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links li {
    margin: 0;
    padding: 0 24px;
    width: 100%;
  }
  .nav-links a {
    display: block;
    padding: 12px 0;
    width: 100%;
    border-radius: 0;
    text-align: left;
    font-size: 1rem;
  }
  .hamburger {
    display: flex;
  }
}
.hero {
  background: linear-gradient(
      135deg,
      rgba(0, 150, 136, 0.18) 0%,
      rgba(0, 121, 107, 0.18) 100%
    ),
    url("images/hero-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 50vh;
  display: flex;
  align-items: center;
  color: white;
  padding-top: 64px;
  position: relative;
  text-align: center;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 150, 136, 0.08) 0%,
    rgba(0, 121, 107, 0.08) 100%
  );
  z-index: 1;
}
.hero .container {
  position: relative;
  z-index: 2;
}
.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  color: #fff;
}
.hero .subtitle {
  font-size: 1.7rem;
  font-weight: 400;
  margin-bottom: 32px;
  opacity: 0.95;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #fff;
}
.workflow-section {
  background: var(--surface);
  margin-top: 32px;
  padding: 40px 0 60px 0;
  border-radius: 12px;
  box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.08),
    0px 4px 5px 0px rgba(0, 0, 0, 0.06);
}
.workflow-section h2 {
  color: var(--primary);
  font-size: 1.8rem;
  font-weight: 500;
  margin-bottom: 32px;
  text-align: center;
}
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.workflow-card {
  background: var(--surface);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 370px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  position: relative;
  overflow: hidden;
}
.workflow-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
.workflow-card h3 {
  color: var(--primary);
  font-size: 1.4rem;
  margin-bottom: 16px;
}
.workflow-card p {
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.steps-container,
.video-container {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  height: 100%;
}
.steps-container.hidden {
  opacity: 0;
  pointer-events: none;
  height: 0;
}
.video-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--surface);
  border-radius: 8px;
  padding: 24px;
  display: none;
  flex-direction: column;
  z-index: 2;
  justify-content: center;
  align-items: center;
}
.back-to-steps {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  margin-bottom: 16px;
  align-self: flex-start;
}
.back-to-steps:hover {
  background: var(--primary-dark);
}
.video-container.active {
  display: flex;
}
.video-container video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 4px;
}
.workflow-steps {
  list-style: none;
  margin-top: 0;
  margin-bottom: 0;
  padding-left: 0;
  overflow-y: auto;
  padding-right: 8px;
  flex: 1 1 auto;
  height: 100%;
  box-sizing: border-box;
}
/* Add bottom padding and remove max-height for the steps in the first workflow card */
.workflow-grid > .workflow-card:first-child .steps-container .workflow-steps {
  padding-bottom: 24px !important;
  max-height: none !important;
}
.workflow-steps li {
  display: block;
  margin-bottom: 18px;
  color: var(--text-primary);
  font-size: 1.05em;
  line-height: 1.4;
}
.workflow-steps li span.step-title {
  display: block;
  margin-bottom: 2px;
  font-size: 1.08em;
  font-weight: 600;
}
/* Custom scrollbar for workflow steps */
.workflow-steps::-webkit-scrollbar {
  width: 6px;
}
.workflow-steps::-webkit-scrollbar-thumb {
  background: #b2dfdb;
  border-radius: 3px;
}
.workflow-steps::-webkit-scrollbar-track {
  background: transparent;
}
.use-cases-section {
  margin-top: 48px;
}
.use-cases-section h2 {
  color: var(--primary);
  font-size: 1.8rem;
  font-weight: 500;
  margin-bottom: 32px;
  text-align: center;
}
.use-case-card {
  background: var(--surface);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.use-case-card h3 {
  color: var(--primary);
  font-size: 1.4rem;
  margin-bottom: 16px;
}
.use-case-card p {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

/* Enhanced responsive styles */
@media (max-width: 900px) {
  .workflow-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 16px;
  }
  .workflow-card {
    padding: 20px;
  }
  .workflow-card h3 {
    font-size: 1.3rem;
  }
  .use-case-card {
    margin: 0 16px 20px 16px;
  }
  .use-case-card h3 {
    font-size: 1.3rem;
  }
  .hero .subtitle {
    font-size: 1.4rem;
    padding: 0 16px;
  }
}

@media (max-width: 600px) {
  .workflow-card {
    padding: 16px;
  }
  .workflow-card h3 {
    font-size: 1.2rem;
  }
  .workflow-steps li {
    font-size: 0.95rem;
  }
  .use-case-card {
    padding: 16px;
    margin: 0 12px 16px 12px;
  }
  .use-case-card h3 {
    font-size: 1.2rem;
  }
  .use-case-card p {
    font-size: 0.95rem;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero .subtitle {
    font-size: 1.2rem;
  }
}

@media (max-width: 400px) {
  .workflow-card {
    padding: 12px;
  }
  .workflow-card h3 {
    font-size: 1.1rem;
  }
  .workflow-steps li {
    font-size: 0.9rem;
  }
  .use-case-card {
    padding: 12px;
    margin: 0 8px 12px 8px;
  }
  .use-case-card h3 {
    font-size: 1.1rem;
  }
  .use-case-card p {
    font-size: 0.9rem;
  }
}

.video-button {
  background: var(--primary);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.video-button:hover {
  background: var(--primary-dark);
}

.video-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.video-overlay.active {
  display: flex;
}

.video-placeholder {
  position: relative;
  width: 100%;
  background: #000;
  border-radius: 4px;
  overflow: hidden;
}

.video-placeholder .video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background 0.3s ease;
}

.video-placeholder .video-overlay:hover {
  background: rgba(0, 0, 0, 0.5);
}

.custom-play {
  color: white;
  font-size: 1.2em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.video-player {
  width: 100%;
  display: block;
}

.close-video {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  font-size: 24px;
  padding: 4px;
  line-height: 1;
}
/* Only for the first workflow card, reduce space after byline and set video button margin */
.workflow-grid > .workflow-card:first-child p {
  margin-bottom: 5px !important;
}
.workflow-grid > .workflow-card:first-child .video-button {
  margin-top: 5px !important;
}
/* Generalized styles for all workflow cards */
.workflow-card .steps-container {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.workflow-card .workflow-steps {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none !important;
}
.workflow-card p {
  margin-bottom: 5px !important;
}
.workflow-card .video-button {
  margin-top: 5px !important;
}
