:root {
  --violet: #6d205e;
  --violet-dark: #4d1643;
  --text: #1f1b24;
  --muted: #6b6b6b;
  --bg: #ffffff;
  --accent: #8a2f72;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
}

img { max-width: 100%; display: block; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid #eee;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 8px 16px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.logo { width: 52px; height: 52px; object-fit: cover; border-radius: 50%; }
.brand-text h1 { margin: 0; font-size: 22px; letter-spacing: 2px; color: var(--violet-dark); }
.brand-text h1 a { color: inherit; text-decoration: none; }
.brand-text h1 a:hover { color: var(--violet); }

.article-preview { 
  border-bottom: 1px solid #eee; 
  padding-bottom: 20px; 
  margin-bottom: 20px; 
}
.article-preview:last-child { border-bottom: none; }
.article-meta { color: var(--muted); font-size: 14px; margin: 8px 0; }
.read-more { 
  color: var(--violet); 
  text-decoration: none; 
  font-weight: 600; 
  display: inline-block; 
  margin-top: 8px; 
}
.read-more:hover { text-decoration: underline; }
.tagline { margin: 0; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }

.nav ul { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; }
.nav a { text-decoration: none; color: var(--text); font-weight: 600; }
.nav a:hover { color: var(--violet); }

/* Hamburger */
.menu-toggle { display: none; width: 40px; height: 32px; background: transparent; border: none; padding: 0; cursor: pointer; }
.menu-toggle .bar { display: block; height: 3px; background: var(--violet-dark); margin: 6px 0; transition: transform .2s ease, opacity .2s ease; }

.hero { width: 100%; }
.hero-image { width: 100%; height: clamp(220px, 40vw, 420px); object-fit: cover; object-position: center; }

main { display: grid; grid-template-columns: 1fr; gap: 24px; max-width: 1100px; margin: 16px auto; padding: 0 16px; }
main > .hero { grid-column: 1 / -1; }

.side-nav { position: sticky; top: 76px; align-self: start; }
.side-nav ul { list-style: disc; padding-left: 20px; margin: 0; display: grid; gap: 10px; }
.side-nav a { color: var(--violet-dark); text-decoration: none; }
.side-nav a:hover { text-decoration: underline; }

.content-section { background: #fff; border: 1px solid #eee; border-radius: 10px; padding: 18px; }
.content-section + .content-section { margin-top: 16px; }
.content-section h2 { margin-top: 0; color: var(--violet-dark); letter-spacing: .5px; }

.contact-section { grid-column: 1 / 2; background: #fff; border: 1px solid #eee; border-radius: 10px; padding: 18px; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.contact-list a { color: var(--accent); text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

.welcome-section {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 32px;
  margin-bottom: 24px;
}

.welcome-section h1 {
  font-size: 2.5rem;
  color: var(--violet-dark);
  margin-bottom: 16px;
  text-align: center;
}

.lead {
  font-size: 1.25rem;
  color: var(--text);
  text-align: center;
  margin-bottom: 32px;
  line-height: 1.6;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.feature-card {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.feature-card h3 {
  color: var(--violet-dark);
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text);
  margin: 0;
  line-height: 1.5;
}

.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  margin-top: 24px;
}

.about-text h2 {
  color: var(--violet-dark);
  font-size: 1.5rem;
  margin: 24px 0 12px 0;
}

.about-text p {
  margin-bottom: 16px;
  line-height: 1.6;
}

.qualifications {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 24px;
}

.qualifications h2 {
  color: var(--violet-dark);
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.qualifications ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.qualifications li {
  padding: 8px 0;
  border-bottom: 1px solid #e9ecef;
  position: relative;
  padding-left: 20px;
}

.qualifications li:last-child {
  border-bottom: none;
}

.qualifications li::before {
  content: "✓";
  color: var(--violet);
  font-weight: bold;
  position: absolute;
  left: 0;
}


.programs-intro {
  margin-bottom: 32px;
}

.programs-intro p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text);
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.program-card {
  background: #fff;
  border: 2px solid #0079db;
  border-radius: 12px;
  padding: 24px;
  transition: all 0.3s ease;
  position: relative;
}

.program-card:hover {
  border-color: var(--violet);
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.program-card.featured {
  border-color: var(--violet);
  background: linear-gradient(135deg, #fff 0%, #f8f5f7 100%);
}

.program-card.featured::before {
  content: "Doporučeno";
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--violet);
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.program-card h3 {
  color: var(--violet-dark);
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.program-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--violet);
  margin-bottom: 16px;
}

.program-features {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
}

.program-features li {
  padding: 6px 0;
  position: relative;
  padding-left: 20px;
}

.program-features li::before {
  content: "•";
  color: var(--violet);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.program-description p {
  margin: 0;
  font-style: italic;
  color: var(--text);
  line-height: 1.5;
}

.topics-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 2px solid #e9ecef;
}

.topics-section h2 {
  color: var(--violet-dark);
  margin-bottom: 24px;
  text-align: center;
}

.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.topic-item {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  padding: 12px 16px;
  text-align: center;
  font-weight: 500;
  color: var(--text);
  transition: all 0.2s ease;
}

.topic-item:hover {
  background: var(--violet);
  color: white;
  transform: translateY(-2px);
}

.mentoring-intro {
  margin-bottom: 32px;
}

.mentoring-intro p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.service-card {
  background: #fff;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 24px;
  transition: all 0.3s ease;
}

.service-card:hover {
  border-color: var(--violet);
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.service-card h3 {
  color: var(--violet-dark);
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.service-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--violet);
  margin-bottom: 16px;
}

.service-description p {
  margin-bottom: 16px;
  color: var(--text);
  line-height: 1.5;
}

.service-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-features li {
  padding: 6px 0;
  position: relative;
  padding-left: 20px;
}

.service-features li::before {
  content: "•";
  color: var(--violet);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.process-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 2px solid #e9ecef;
}

.process-section h2 {
  color: var(--violet-dark);
  margin-bottom: 32px;
  text-align: center;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.process-step {
  text-align: center;
  padding: 24px;
  background: #f8f9fa;
  border-radius: 12px;
  border: 1px solid #e9ecef;
}

.step-number {
  width: 40px;
  height: 40px;
  background: var(--violet);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0 auto 16px auto;
}

.process-step h3 {
  color: var(--violet-dark);
  margin-bottom: 12px;
}

.process-step p {
  margin: 0;
  line-height: 1.5;
}

.formats-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 2px solid #e9ecef;
}

.formats-section h2 {
  color: var(--violet-dark);
  margin-bottom: 24px;
  text-align: center;
}

.formats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.format-card {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  transition: all 0.2s ease;
}

.format-card:hover {
  border-color: var(--violet);
  transform: translateY(-2px);
}

.format-card h4 {
  color: var(--violet-dark);
  margin-bottom: 12px;
}

.format-card p {
  margin: 0;
  line-height: 1.5;
}

.articles-intro {
  margin-bottom: 32px;
}

.articles-intro p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text);
}

.filter-section {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 32px;
}

.filter-section h3 {
  color: var(--violet-dark);
  margin-bottom: 16px;
  font-size: 1.2rem;
}

.filter-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.filter-tag {
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
}

.filter-checkbox {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.filter-tag .tag {
  transition: all 0.2s ease;
  opacity: 0.6;
  position: relative;
}

.filter-tag .filter-checkbox:checked + .tag {
  opacity: 1;
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.filter-tag .filter-checkbox:checked + .tag::before {
  content: "✓";
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--violet);
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  z-index: 1;
}

/* Override tag colors when selected in filter */
.filter-tag .filter-checkbox:checked + .tag-blue {
  background: #0079db !important;
  color: white !important;
  border-color: #0079db !important;
}

.filter-tag .filter-checkbox:checked + .tag-green {
  background: #228b22 !important;
  color: white !important;
  border-color: #228b22 !important;
}

.filter-tag .filter-checkbox:checked + .tag-red {
  background: #dc143c !important;
  color: white !important;
  border-color: #dc143c !important;
}

.filter-tag .filter-checkbox:checked + .tag-gold {
  background: #b8860b !important;
  color: white !important;
  border-color: #b8860b !important;
}

.filter-tag .filter-checkbox:checked + .tag-purple {
  background: #9370db !important;
  color: white !important;
  border-color: #9370db !important;
}

.filter-tag .filter-checkbox:checked + .tag-orange {
  background: #ff6347 !important;
  color: white !important;
  border-color: #ff6347 !important;
}

.clear-filters-btn {
  background: var(--violet);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.clear-filters-btn:hover {
  background: var(--violet-dark);
}

.article-preview.hidden {
  display: none;
}

.articles-list {
  margin-bottom: 48px;
}

.article-preview {
  border-bottom: 1px solid #e9ecef;
  padding-bottom: 24px;
  margin-bottom: 24px;
}

.article-tags {
  margin-bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
  border: 1px solid;
}

/* Different colors for different tags */
.tag-blue {
  background: #f0f8ff;
  color: #0079db;
  border-color: #0079db;
}

.tag-blue:hover {
  background: #0079db;
  color: white;
}

.tag-green {
  background: #f0fff0;
  color: #228b22;
  border-color: #228b22;
}

.tag-green:hover {
  background: #228b22;
  color: white;
}

.tag-red {
  background: #fff0f5;
  color: #dc143c;
  border-color: #dc143c;
}

.tag-red:hover {
  background: #dc143c;
  color: white;
}

.tag-gold {
  background: #f5f5dc;
  color: #b8860b;
  border-color: #b8860b;
}

.tag-gold:hover {
  background: #b8860b;
  color: white;
}

.tag-purple {
  background: #e6e6fa;
  color: #9370db;
  border-color: #9370db;
}

.tag-purple:hover {
  background: #9370db;
  color: white;
}

.tag-orange {
  background: #ffe4e1;
  color: #ff6347;
  border-color: #ff6347;
}

.tag-orange:hover {
  background: #ff6347;
  color: white;
}

.article-preview:last-child {
  border-bottom: none;
}

.article-preview h2 {
  color: var(--violet-dark);
  margin-bottom: 8px;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 12px;
}

.article-date {
  color: var(--muted);
  font-size: 0.9rem;
}

.article-preview p {
  margin-bottom: 16px;
  line-height: 1.6;
}

.read-more {
  color: var(--violet);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s ease;
}

.read-more:hover {
  color: var(--violet-dark);
}

.newsletter-section {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 32px;
  text-align: center;
}

.newsletter-section h2 {
  color: var(--violet-dark);
  margin-bottom: 12px;
}

.newsletter-section p {
  margin-bottom: 24px;
  color: var(--text);
}

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 400px;
  margin: 0 auto;
}

.newsletter-input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  font-size: 1rem;
}

.newsletter-button {
  background: var(--violet);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.newsletter-button:hover {
  background: var(--violet-dark);
}

.site-footer { 
  text-align: center; 
  color: var(--muted); 
  padding: 24px 12px 40px; 
  background: transparent;
}

@media (max-width: 920px) {
  main { grid-template-columns: 1fr; }
  .side-nav { order: -1; position: relative; top: 0; }
}

@media (max-width: 680px) {
  .menu-toggle { display: inline-block; }
  .nav { position: absolute; right: 12px; top: 60px; background: #fff; border: 1px solid #eee; border-radius: 8px; box-shadow: 0 8px 22px rgba(0,0,0,.08); padding: 10px 14px; display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 10px; }
}


