:root {
  --primary-color: #2563eb;
  --primary-darker: #1e40af;
  --background-color: #f8fafc; /* Lighter page background */
  --card-background: #ffffff;
  --secondary-bg: #f1f5f9;
  --text-color: #1e293b;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --success-color: #16a34a;
  --warning-color: #ea580c;
}

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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.7;
  color: var(--text-color);
  background-color: var(--background-color);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  background: var(--card-background);
  border-bottom: 1px solid var(--border-color);
  padding: 24px 0;
}

header h1 {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 8px;
  text-align: center;
}

/* Main content */
main {
  padding: 48px 0;
}

section {
  margin-bottom: 64px;
}

h2 {
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  color: var(--text-color);
  margin-bottom: 32px;
  padding-bottom: 12px;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-color);
  margin: 24px 0 16px;
}

p {
  margin-bottom: 16px;
  color: var(--text-muted);
}

/* Introduction Section Specific Styles */
#uvod {
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

#uvod p {
  color: var(--text-color);
}

/* Workflow Box */
.workflow-box {
  background: var(--card-background);
  padding: 24px;
  margin: 32px 0;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  text-align: left;
}

.workflow-box h3 {
  color: var(--primary-darker);
  margin-top: 0;
  font-size: 1.25rem;
  margin-bottom: 20px;
}

.workflow-box ol {
  list-style: none;
  counter-reset: workflow-counter;
  padding-left: 0;
}

.workflow-box li {
  counter-increment: workflow-counter;
  margin-bottom: 16px;
  position: relative;
  padding-left: 45px;
  font-size: 1rem;
  line-height: 1.5;
}

.workflow-box li:last-child {
  margin-bottom: 0;
}

.workflow-box li::before {
  content: counter(workflow-counter);
  position: absolute;
  left: 0;
  top: -3px;
  width: 32px;
  height: 32px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  text-align: center;
  font-weight: bold;
  line-height: 32px;
}

/* New Panel Article Styles - As per Screenshot */
article {
  background: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

article:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.article-text-content h3 {
  margin-top: 0;
  font-size: 1.75rem;
  color: var(--primary-color);
}

.article-text-content p {
  color: var(--text-color);
  line-height: 1.8;
}

.article-text-content ul {
  list-style: none;
  padding-left: 0;
  margin: 24px 0;
}

.article-text-content li {
  margin-bottom: 12px;
  padding-left: 28px;
  position: relative;
  font-size: 1rem;
  line-height: 1.6;
}

.article-text-content li::before {
  content: "✓";
  color: var(--success-color);
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 2px;
  font-size: 1.2rem;
}

.article-text-content li strong {
  color: var(--text-color);
}

.article-image-container {
  text-align: center;
}

.article-image-container img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  display: block;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cta-button {
  display: inline-block;
  background: var(--primary-color);
  color: white !important;
  padding: 14px 32px;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: background 0.2s ease;
  text-align: center;
  margin-top: 16px;
}

.cta-button:hover {
  background: var(--primary-darker);
}

blockquote {
  background: #fffbeb;
  border-left: 4px solid #f59e0b;
  padding: 16px;
  margin: 20px 0;
  border-radius: 4px;
  color: #b45309;
}

blockquote p {
  color: #b45309;
  margin: 0;
}

blockquote strong {
  font-style: normal;
}

/* New styles for Tips Section */
#tipy {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  background: var(--card-background);
  padding: 24px 32px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.tip-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--border-color);
}

.tip-item:first-child {
  padding-top: 0;
}

.tip-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.tip-item h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-color);
  margin: 0 0 8px 0;
}

.tip-item p {
  margin-bottom: 0;
  font-size: 1rem;
  color: var(--text-muted);
}

/* FAQ section */
#faq {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-color);
  padding: 24px 0;
}

.faq-item:first-child {
  padding-top: 0;
}

.faq-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.faq-item h3 {
  margin-top: 0;
  color: var(--text-color);
  font-size: 1.25rem;
}

/* Footer */
footer {
  background: var(--card-background);
  border-top: 1px solid var(--border-color);
  padding: 32px 0;
  margin-top: 64px;
}

footer p {
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 8px;
}

/* Responsive */
@media (min-width: 768px) {
  header h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 2rem;
  }

  #tipy {
    padding: 32px 48px;
  }

  article {
    flex-direction: row;
    align-items: center; /* Vertically align items */
    padding: 32px;
  }

  .article-text-content {
    flex: 2; /* Takes 2/3 of the space */
    padding-right: 32px;
  }

  .article-image-container {
    flex: 1; /* Takes 1/3 of the space */
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 1200px;
  }
}
