:root {
  --primary-color: #4e1d1b;
  --secondary-color: #dd6560;
  --background-color: #ffffff;
  --font-family-base: "Poppins", sans-serif;
  --font-weight-regular: 400;
  --font-weight-medium: 500;

  --font-size-h1: clamp(2rem, 5vw, 2.5rem);
  --line-height-h1: clamp(2.25rem, 6vw, 3rem);

  --font-size-h2: clamp(1.75rem, 4vw, 2rem);
  --line-height-h2: clamp(2rem, 5vw, 2.5rem);

  --font-size-h3: clamp(1.5rem, 3vw, 1.75rem);
  --line-height-h3: clamp(2rem, 4vw, 2rem);

  --font-size-body: clamp(1rem, 1.5vw, 1rem);
  --line-height-body: clamp(1.5rem, 2vw, 1.5rem);

  --font-size-body-small: clamp(0.875rem, 1.2vw, 0.875rem);
  --line-height-body-small: clamp(1.125rem, 1.5vw, 1.125rem);

  --site-max-width: 1440px;
  --content-max-width: 1400px;
  --site-padding: clamp(16px, 4vw, 40px);
}

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

body {
  background: #fdf2f0;
  background-image: url("./assets/images/background.png");
  background-repeat: no-repeat;
  font-family: var(--font-family-base) !important;
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* TYPOGRAPHY */
h1 {
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-medium);
  font-style: normal;
  font-size: var(--font-size-h1);
  line-height: var(--line-height-h1);
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 20px;
}

h2 {
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-medium);
  font-style: normal;
  font-size: var(--font-size-h2);
  line-height: var(--line-height-h2);
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 8px;
  line-height: 40px;
}

h3 {
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-medium);
  font-style: normal;
  font-size: var(--font-size-h3);
  line-height: var(--line-height-h3);
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 12px;
}

p {
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-regular);
  font-style: normal;
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
  color: var(--primary-color);
  margin-bottom: 16px;
}

p.small {
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-regular);
  font-style: normal;
  font-size: var(--font-size-body-small);
  line-height: var(--line-height-body-small);
  color: var(--primary-color);
  margin-bottom: 12px;
}

.text-center {
  text-align: center !important;
}

.body-color-light {
  color: #845d5b;
}

a {
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-medium);
  font-style: normal;
  font-size: inherit;
  line-height: inherit;
  color: var(--secondary-color);
  text-decoration: none;
  vertical-align: middle;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

a.no-hover:hover {
  text-decoration: none;
}

/* SITE CONTAINER */
.site-container {
  max-width: 1440px !important;
  margin-inline: auto;
  padding-inline: var(--site-padding);
  width: 100% !important;
}

/* CONTENT CONTAINER (main content) */
.content-container {
  max-width: 1440px !important;
  margin-inline: auto;
  padding-inline: var(--site-padding);
  width: 100% !important;
}

/* WordPress wrapper override - forsira punu širinu */
.entry-content,
.post-content,
.page-content,
article,
.hentry {
  max-width: 1440px !important;
  width: 100% !important;
  margin-inline: auto !important;
}

/* BUTTONS */
.btn-primary {
  background-color: var(--primary-color);
  color: var(--background-color);
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  transform: scale(1.05);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--background-color);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  transform: scale(1.05);
}

.btn-secondary-outline {
  border: 1px solid var(--secondary-color);
}

.mood-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease;
  margin: 8px;
  flex: 1 1 100%;
  max-width: 120px;
  min-width: 70px;
  padding: clamp(8px, 2vw, 16px) clamp(12px, 3vw, 24px);
  min-height: auto;
}

.mood-btn span {
  margin-top: 12px;
  font-size: 14px;
  color: var(--primary-color);
  font-weight: var(--font-weight-medium);
}

/* Emoji container */
.emoji-container {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.emoji-container .emoji-static,
.emoji-container .emoji-highlighted,
.emoji-container .emoji-animated {
  position: absolute;
  top: 0;
  left: 0;
  width: 80px;
  height: 80px;
  object-fit: contain;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.emoji-container .emoji-static {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.emoji-container .emoji-animated {
  opacity: 0;
  transform: scale(0.9);
  z-index: 1;
  pointer-events: none;
}

.emoji-container .emoji-static.hidden {
  opacity: 0;
  transform: scale(0.9);
}

.emoji-container .emoji-animated.visible {
  opacity: 1;
  transform: scale(1);
}

.mood-btn.not-selected .emoji-container {
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

lottie-player {
  width: 60px;
  height: 60px;
  pointer-events: none;
}

.mood-btn lottie-player {
  transition: filter 0.3s ease;
  filter: grayscale(0%);
}

.mood-btn:hover lottie-player {
  filter: none;
}

.mood-btn.selected lottie-player {
  filter: none;
}

.mood-btn.not-selected lottie-player {
  filter: grayscale(100%);
}

/* PHASE CARDS */
.phase-cards {
  display: grid;
  gap: 20px;
}

.child-phase-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 24px;
  /* min-width: 320px; */
  max-width: 320px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0px;
  box-sizing: border-box;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.child-phase-card:hover {
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.child-phase-card__description {
  font-size: 14px;
  margin: 0;
}

.child-phase-card__icon img {
  width: 32px;
  height: auto;
  display: block;
}

.child-phase-card__title {
  margin: 0;
  margin-top: 8px;
  font-size: 24px;
  line-height: 32px;
}

.child-phase-card__link {
  text-decoration: none;
}

.child-phase-card__link:hover {
  text-decoration: none;
}

.child-phases__list {
  display: flex;
}

/* ARTICLES */
.phase-articles {
  width: 100%;
}

.articles-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.article-link-card {
  display: flex;
  align-items: center;
  flex: 1 1 300px;
  max-width: 400px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  background: #ffffff;
  border-radius: 8px;
  box-sizing: border-box;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.article-link-card a {
  padding: 32px 24px;
  text-decoration: none;
  color: inherit;
  display: block;
}

.article-link-card p {
  font-size: 24px;
  line-height: 32px;
  margin: 0;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-link-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* FLEX UTILITIES */
.flex {
  display: flex;
}

.flex--row {
  flex-direction: row;
}

.flex--column {
  flex-direction: column;
}

.flex--justify-start {
  justify-content: flex-start;
}
.flex--justify-end {
  justify-content: flex-end;
}
.flex--justify-center {
  justify-content: center;
}
.flex--justify-between {
  justify-content: space-between;
}
.flex--justify-around {
  justify-content: space-around;
}
.flex--justify-evenly {
  justify-content: space-evenly;
}

.flex--items-start {
  align-items: flex-start;
}
.flex--items-end {
  align-items: flex-end;
}
.flex--items-center {
  align-items: center;
}
.flex--items-stretch {
  align-items: stretch;
}
.flex--items-baseline {
  align-items: baseline;
}

.flex--wrap {
  flex-wrap: wrap;
}
.flex--nowrap {
  flex-wrap: nowrap;
}
.flex--wrap-reverse {
  flex-wrap: wrap-reverse;
}

/* GAP UTILITIES */
.gap-0 {
  gap: 0px;
}
.gap-1 {
  gap: 8px;
}
.gap-2 {
  gap: 16px;
}
.gap-3 {
  gap: 24px;
}
.gap-4 {
  gap: 32px;
}
.gap-5 {
  gap: 40px;
}
.gap-6 {
  gap: 48px;
}
.gap-7 {
  gap: 56px;
}
.gap-8 {
  gap: 64px;
}
.gap-9 {
  gap: 72px;
}
.gap-10 {
  gap: 80px;
}

/* MARGIN UTILITIES */
.m-0-auto {
  margin: 0 auto;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-3 {
  margin-bottom: 24px;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 32px 0;
  margin-top: auto;
}

/* MAIN */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100% !important;
  max-width: 100% !important;
}

#primary,
#content,
.site-content,
.site-main {
  max-width: 100% !important;
  width: 100% !important;
}

#calculator-form {
  padding: 24px;
  border-radius: 12px;
  background: #ffffff;
  max-width: 680px;
  width: 680px;
  text-align: center;
  transform: translateY(5px) scale(0.98);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

.quiz-result {
  padding: 24px;
  border-radius: 12px;
  background: #ffffff;
  max-width: 680px;
  width: 680px;
  text-align: center;
  opacity: 0;
  transform: translateY(5px) scale(0.98);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

.quiz-result {
  padding: 24px;
  border-radius: 12px;
  background: #ffffff;
  max-width: 680px;
  width: 680px;
  text-align: center;
  opacity: 0;
  transform: translateY(5px) scale(0.98);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

.quiz-result.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ============================================
   HEADER STYLES
   ============================================ */

.custom-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  position: relative;
  z-index: 1000;
  margin-top: 60px;
  margin-bottom: 80px;
}

.header-left {
  display: flex;
  align-items: center;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-action {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: none;
  padding: 12px 20px;
  height: 48px;
  border-radius: 40px;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease;
}

.btn-action .icon {
  font-size: 18px;
  flex-shrink: 0;
}

.btn-action .text {
  font-size: 16px;
  line-height: 1;
  white-space: nowrap;
}

.btn-action:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

a.bebbo-app .text {
  color: #2b2f84;
}

a.bebbo-app:hover .text {
  color: #4dc6f4;
}

/* Segmented control */
.segmented-control {
  display: flex;
  background: #fae7dd;
  border-radius: 40px;
  overflow: hidden;
  padding: 2px;
  gap: 2px;
}

.segmented-control .tab {
  padding: 6px 24px;
  border: none;
  cursor: pointer;
  flex: 1;
  text-align: center;
  font-size: 16px;
  height: 44px;
  background: none;
  font-family: var(--font-family-base);
  color: var(--secondary-color);
  font-weight: 500;
  transition: all 0.2s ease;
  border-radius: 40px;
}

.segmented-control .tab.active {
  background: #ffffff;
  color: var(--secondary-color);
  border-radius: 40px;
}

.segmented-control .tab:hover:not(.active) {
  background: rgba(255, 255, 255, 0.5);
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  h1 {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
    line-height: clamp(2rem, 6vw, 3rem);
  }

  h2 {
    font-size: clamp(1.5rem, 5vw, 2rem);
    line-height: clamp(1.75rem, 5vw, 2.5rem);
  }

  h3 {
    font-size: clamp(1.25rem, 4vw, 1.75rem);
    line-height: clamp(1.5rem, 4vw, 2rem);
  }

  p {
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    line-height: clamp(1.25rem, 2vw, 1.5rem);
  }

  p.small {
    font-size: clamp(0.75rem, 1.2vw, 0.875rem);
    line-height: clamp(1rem, 1.5vw, 1.125rem);
  }

  .page-content,
  #pregnancy-calculator {
    padding-left: 0;
    padding-right: 0;
  }

  #calculator-form {
    width: 100%;
  }

  .result-actions {
    flex-direction: column !important;
  }

  .mood-btn {
    font-size: 1rem;
    padding: 0;
    min-height: 100px;
  }

  .emoji-container {
    width: 50px;
    height: 50px;
  }

  .emoji-container .emoji-static,
  .emoji-container .emoji-highlighted,
  .emoji-container .emoji-animated {
    width: 50px;
    height: 50px;
  }

  .child-phases__list {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .child-phase-card {
    width: 100%;
    max-width: 100%;
    min-width: auto;
    margin-bottom: 0;
  }

  .splide__arrows {
    display: none;
  }

  /* Articles */
  .article-link-card {
    flex: 1 1 100%;
  }

  .article-link-card a {
    padding: 24px 16px;
  }

  .article-link-card p {
    font-size: 24px;
    line-height: 28px;
  }

  /* HEADER - MOBILE */
  .custom-header {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
    margin-bottom: 40px;
  }

  .header-left {
    position: absolute;
    left: 20px;
    top: 0;
    width: auto;
  }

  .header-right {
    position: absolute;
    right: 20px;
    top: 0;
    gap: 8px;
    width: auto;
  }

  /* Buttons - samo ikonice */
  .btn-action {
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
  }

  .btn-action .text {
    display: none;
  }

  .btn-action .icon {
    width: 24px;
    height: 24px;
    margin: 0;
  }

  .segmented-control {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: #fae7dd;
    border-radius: 0;
    padding: 8px 16px;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    margin-top: 0;
  }

  .segmented-control .tab {
    font-size: 14px;
    padding: 10px 12px;
    height: 44px;
    border-radius: 40px;
  }

  body {
    padding-bottom: 80px;
  }

  .home-page {
    min-height: calc(100vh - 240px);
  }

  .quiz-result {
    width: 100%;
    max-width: 100%;
    padding: 20px;
  }
}

/* ============================================
   SINGLE ARTICLE PAGE
   ============================================ */

.single-article {
  padding: 40px 0;
}

/* Back link */
.article-back {
  margin-bottom: 32px;
}

.article-back a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--secondary-color);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.article-back a:hover {
  color: var(--primary-color);
}

.article-back svg {
  width: 20px;
  height: 20px;
}

/* Categories */
.article-categories {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.category-tag {
  display: inline-block;
  padding: 4px 12px;
  background: #ffffff;
  border: 1px solid var(--secondary-color);
  border-radius: 4px;
  font-size: 14px;
  line-height: 16px;
  font-weight: 500;
  color: var(--secondary-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Title */
.article-title {
  font-size: clamp(1.75rem, 4vw, 2rem);
  line-height: 1.3;
  margin-bottom: 8px;
  text-align: left;
  color: var(--primary-color);
}

/* Meta */
.article-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 400;
}

.article-author-link {
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.article-author-link:hover {
  opacity: 0.8;
}

.article-author-link:hover .article-author {
  text-decoration: underline;
}

.article-author {
  color: var(--secondary-color);
}

.article-author::after {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  background: var(--secondary-color);
  border-radius: 50%;
  margin-left: 8px;
  vertical-align: middle;
}

.article-date {
  color: var(--secondary-color);
}

/* Content */
.article-content {
  margin-bottom: 64px;
}

.article-content img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 32px 0;
}

.article-content p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 32px;
  text-align: left;
  color: var(--primary-color);
}

.article-content h2,
.article-content h3 {
  text-align: left;
  margin-top: 40px;
  margin-bottom: 16px;
}

.article-content blockquote {
  background: #f9f4f2;
  border-left: 4px solid var(--secondary-color);
  padding: 16px 24px;
  margin: 32px 0;
  border-radius: 0;
  font-style: italic;
  font-size: 18px;
  line-height: 1.6;
}

.article-content blockquote > p {
  margin-bottom: 0;
}

/* Social Share */
.article-share {
  padding: 64px 0;
  text-align: center;
  border-top: 1px solid #f3d1d0;
  border-bottom: 1px solid #f3d1d0;
  margin-bottom: 32px;
}

.article-share h3 {
  font-size: 24px;
  margin-bottom: 24px;
  color: var(--primary-color);
}

.share-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 40px;
  font-size: 16px;
  font-weight: 500;
  color: #ffffff;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  color: #ffffff;
}

.share-btn--facebook {
  background: #1877f2;
}

.share-btn--instagram {
  background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af, #515bd4);
}

.share-btn--linkedin {
  background: #0a66c2;
}

.share-btn svg {
  width: 20px;
  height: 20px;
}

/* Related Articles */
.related-articles {
  margin-bottom: 64px;
}

.related-articles h3 {
  font-size: 28px;
  text-align: left;
  margin-bottom: 8px;
  color: var(--primary-color);
}

.related-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.related-article-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.related-article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.related-article-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.related-article-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.related-article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.related-article-card:hover .related-article-image img {
  transform: scale(1.05);
}

.related-article-content {
  padding: 20px;
}

.related-article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 12px;
}

.related-author {
  color: var(--secondary-color);
  font-weight: 500;
}

.related-author::after {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  background: var(--secondary-color);
  border-radius: 50%;
  margin-left: 12px;
  vertical-align: middle;
}

.related-date {
  color: #845d5b;
}

.related-article-title {
  font-size: 18px;
  line-height: 1.4;
  margin-bottom: 12px;
  color: var(--primary-color);
}

.related-article-excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: #845d5b;
  margin: 0;
}

.no-related {
  text-align: center;
  font-size: 16px;
  color: #845d5b;
  padding: 40px 20px;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .article-title {
    font-size: 1.75rem;
  }

  .article-content p {
    font-size: 15px;
  }

  .article-content blockquote {
    padding: 16px 20px;
    font-size: 16px;
  }

  .share-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .share-btn {
    justify-content: center;
  }

  .related-articles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .related-article-image {
    height: 180px;
  }
}

/* ============================================
   ARTICLES ARCHIVE PAGE
   ============================================ */

.articles-archive {
  padding: 40px 0;
}

.articles-archive h1 {
  margin-bottom: 40px;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 400px));
  gap: 24px;
  margin-bottom: 64px;
  justify-content: center;
}

.archive-article-card {
  max-width: 400px;
  background: #ffffff;
  overflow: hidden;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.archive-article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.archive-article-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.archive-article-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.archive-article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.archive-article-card:hover .archive-article-image img {
  transform: scale(1.05);
}

.archive-article-content {
  padding: 20px;
}

.archive-article-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 400;
  color: var(--secondary-color);
}

.archive-author {
  color: var(--secondary-color);
  font-weight: 500;
}

.archive-author::after {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  background: var(--secondary-color);
  border-radius: 50%;
  margin-left: 8px;
  vertical-align: middle;
}

.archive-article-title,
.archive-article-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.archive-article-title {
  font-size: 20px;
  line-height: 1.4;
  margin-bottom: 12px;
  color: var(--primary-color);
  text-align: left;
}

.archive-article-excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: #845d5b;
  margin: 0;
}

.no-articles {
  text-align: center;
  font-size: 18px;
  color: #845d5b;
  padding: 60px 20px;
}

@media (max-width: 768px) {
  .articles-grid {
    grid-template-columns: 1fr;
  }

  .archive-article-image {
    height: 180px;
  }
}

/* Utility classes */
.fs-14 {
  font-size: 14px;
}
.fs-32 {
  font-size: 32px;
}

.lh-18 {
  line-height: 18px;
}

.lh-40 {
  line-height: 40px;
}

/* ============================================
   RELATED ARTICLES SLIDER (SPLIDE)
   ============================================ */

.related-articles-slider {
  position: relative;
  padding: 0 48px;
}

.related-articles-slider .splide__track {
  overflow: hidden;
}

.related-articles-slider .splide__list {
  display: flex;
  align-items: stretch;
}

.related-articles-slider .splide__slide {
  height: auto;
  display: flex;
  padding-right: 24px;
}

/* Kartice iste visine */
.related-articles-slider .archive-article-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.related-articles-slider .archive-article-card a {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.related-articles-slider .archive-article-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.related-articles-slider .archive-article-excerpt {
  flex: 1;
}

/* Za listu (kad je 3 ili manje) */
.related-articles-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.related-articles-list .archive-article-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.related-articles-list .archive-article-card a {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.related-articles-list .archive-article-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.related-articles-list .archive-article-excerpt {
  flex: 1;
}

@media (max-width: 768px) {
  .related-articles-slider {
    padding: 0 16px;
  }

  .related-articles-slider .splide__slide {
    padding-right: 16px;
  }

  .related-articles-list {
    grid-template-columns: 1fr;
  }
}

.fc-secondary {
  color: var(--secondary-color);
}

/* Child phases flex list (4 ili manje) */
.child-phases-flex-list {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.child-phases-flex-list .child-phase-card {
  flex: 0 0 auto;
}

@media (max-width: 768px) {
  .child-phases-flex-list {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .child-phases-flex-list .child-phase-card {
    width: 100%;
    max-width: 100%;
    min-width: auto;
  }
}

.home-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 364px);
  width: 100%;
}

.child-phase-page,
.parent-phase-page {
  min-height: calc(100vh - 364px);
}

.quiz-hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--site-padding);
  padding-block: 40px;
}

.quiz-hero h1 {
  margin-bottom: 64px;
}

.result-articles {
  padding: 16px;
  gap: 8px;
  background: #fefaf7;
  border-radius: 12px;
}

.result-articles ul {
  list-style: none;
}

.result-articles p {
  margin-bottom: 8px;
}

.result-actions {
  text-align: center;
  margin: 24px 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

button.btn,
a.btn {
  height: 48px;
  font-size: 16px;
  font-weight: 500;
  display: inline-block;
  border-radius: 48px;
  padding: 16px 24px;
  line-height: 17px;
  text-transform: uppercase;
}

button.btn-outline,
a.btn-outline {
  background: #fff;
  border: 1px solid var(--secondary-color);
  color: var(--secondary-color);
  transition:
    border-color 0.3s ease,
    color 0.3s ease;
}

button.btn-outline,
a.btn-outline:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  text-decoration: none;
}

button.btn-fill,
a.btn-fill {
  border: 1px solid var(--secondary-color);
  background-color: var(--secondary-color);
  color: white;
  transition: background-color 0.3s ease;
}

button.btn-fill:hover,
a.btn-fill:hover {
  background-color: var(--primary-color);
  text-decoration: none;
}

button.btn:hover a.btn:hover {
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  border: none;
  color: var(--secondary-color);
  height: 48px;
  font-size: 16px;
  font-weight: 500;
  display: inline-block;
  border-radius: 48px;
  padding: 16px 24px;
  line-height: 17px;
  transition: color 0.3s ease;
  cursor: pointer;
}

.btn-ghost:hover {
  color: var(--primary-color);
}

/* Load More Button */
.load-more-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.btn-load-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background: var(--secondary-color);
  color: #ffffff;
  border: none;
  border-radius: 40px;
  font-size: 16px;
  font-weight: 500;
  font-family: var(--font-family-base);
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 200px;
}

.btn-load-more:hover {
  background: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-load-more:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.loading-spinner {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--secondary-color);
  font-size: 16px;
  font-weight: 500;
}

.loading-spinner span {
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.loading-spinner::before {
  content: "";
  width: 20px;
  height: 20px;
  border: 3px solid var(--secondary-color);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.w-min-320 {
  min-width: 320px;
}

.response-emoji {
  width: 48px;
  height: 48px;
  margin: 0 auto;
  margin-bottom: 8px;
}

.result-title {
  font-size: 24px;
  line-height: 32px;
  font-weight: 500;
}

.result-description {
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: var(--primary-color);
  margin-bottom: 20px;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.articles-link-list {
  display: flex;
  flex-direction: column;
  flex-basis: 100%;
  gap: 8px;
}

#pregnancy-calculator .quiz-result {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}

#pregnancy-calculator .quiz-result.is-visible {
  opacity: 1;
  transform: translateY(0);
}

#pregnancy-calculator input {
  width: 100%;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

#confetti-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.confetti {
  position: absolute;
  width: 8px;
  height: 8px;
  background-color: red;
  opacity: 0.9;
  transform: rotate(0deg);
  animation: confetti-fall 3s linear forwards;
}

@keyframes confetti-fall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(600px) rotate(360deg);
    opacity: 0;
  }
}

/* Stilizacija input polja */
#pregnancy-calculator input,
#pregnancy-calculator select,
#pregnancy-calculator textarea {
  width: 100%;
  padding: 14px 20px;
  border-radius: 40px;
  border: 1px solid var(--secondary-color);
  font-family: var(--font-family-base);
  font-size: 16px;
  font-weight: 500;
  color: var(--primary-color);
  background-color: #fff;
  outline: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

#pregnancy-calculator input:focus,
#pregnancy-calculator select:focus,
#pregnancy-calculator textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Placeholder stil */
#pregnancy-calculator input::placeholder {
  color: #ccc;
  font-weight: 400;
}

#pregnancy-calculator label {
  display: block;
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
  color: var(--primary-color);
  cursor: pointer;
  transition: color 0.3s ease;
  text-align: left;
}

#pregnancy-calculator small {
  text-align: left;
}

.date-wrapper {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.date-wrapper label {
  font-weight: 600;
  font-size: 16px;
  cursor: pointer; /* pokazuje da se može kliknuti */
}

.custom-date-field {
  position: relative;
  width: 100%;
}

.custom-date-field input[type="date"] {
  width: 100%;
  padding: 12px 40px 12px 12px; /* dovoljno prostora za ikonicu */
  font-size: 16px;
  border-radius: 6px;
  border: 1px solid #ccc;
  cursor: pointer;
  appearance: none; /* uklanja default browser stil */
  -webkit-appearance: none;
}

.custom-date-field input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0;
  position: absolute;
  right: 0;
  top: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.custom-date-field .calendar-icon {
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 18px;
}

@media (max-width: 600px) {
  #pregnancy-calculator h2 {
    font-size: 20px;
  }

  .result-boxes {
    flex-direction: column;
  }
}
