/* === ŽODYNAS (GLOSSARY) === */

/* Hero */
.pf-glossary-hero {
  padding: 4rem 0 2rem;
  background: var(--pf-background);
}
.pf-glossary-hero__title {
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}
.pf-glossary-hero__subtitle {
  font-size: clamp(.95rem, 2vw, 1.125rem);
  color: var(--pf-text-muted);
  max-width: 38rem;
  margin: 0 auto;
  line-height: 1.7;
}

/* Search */
.pf-glossary-filters {
  padding: 2rem 0 0;
  background: var(--pf-background);
}
.pf-glossary-search {
  max-width: 40rem;
  margin: 0 auto 2rem;
}
.pf-glossary-search__wrap {
  position: relative;
  background: var(--pf-white);
  border-radius: var(--pf-radius-lg);
  box-shadow: var(--pf-shadow-md);
  border: 1px solid rgba(220,229,229,.5);
  transition: all var(--pf-transition);
}
.pf-glossary-search__wrap:focus-within {
  border-color: var(--pf-primary);
  box-shadow: 0 0 0 4px rgba(123,157,156,.12), var(--pf-shadow-md);
}
.pf-glossary-search__icon {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--pf-text-muted);
  pointer-events: none;
}
.pf-glossary-search__input {
  width: 100%;
  padding: 1.125rem 1.5rem 1.125rem 3.25rem;
  border: none;
  border-radius: var(--pf-radius-lg);
  background: transparent;
  font-size: 1.0625rem;
  font-weight: 500;
  outline: none;
}
.pf-glossary-search__input::placeholder {
  color: var(--pf-text-muted);
  font-weight: 400;
}

/* Category filters */
.pf-glossary-cats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
}
.pf-glossary-cat {
  padding: .5rem 1.25rem;
  border-radius: 2rem;
  font-size: .875rem;
  font-weight: 600;
  border: 1px solid rgba(220,229,229,.5);
  background: var(--pf-white);
  color: var(--pf-text-muted);
  transition: all var(--pf-transition);
  white-space: nowrap;
}
.pf-glossary-cat:hover {
  border-color: var(--pf-primary);
  color: var(--pf-primary);
}
.pf-glossary-cat.is-active {
  background: var(--pf-primary);
  color: #fff;
  border-color: var(--pf-primary);
}

/* Glossary grid */
.pf-glossary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .pf-glossary-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Glossary card */
.pf-glossary-card {
  background: var(--pf-white);
  border-radius: var(--pf-radius-xl);
  border: 1px solid rgba(220,229,229,.4);
  transition: all var(--pf-transition);
  overflow: hidden;
}
.pf-glossary-card:hover {
  transform: translateY(-.25rem);
  border-color: rgba(123,157,156,.3);
  box-shadow: var(--pf-shadow-lg);
}
.pf-glossary-card__link {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  height: 100%;
}
.pf-glossary-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}
.pf-glossary-card__badge {
  display: inline-block;
  padding: .25rem .75rem;
  background: rgba(220,229,229,.25);
  font-size: .65rem;
  font-weight: 700;
  border-radius: 2rem;
  letter-spacing: .08em;
  color: var(--pf-text-muted);
  border: 1px solid rgba(220,229,229,.5);
}
.pf-glossary-card__icon {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(220,229,229,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pf-text-muted);
  flex-shrink: 0;
  transition: all var(--pf-transition);
}
.pf-glossary-card:hover .pf-glossary-card__icon {
  background: var(--pf-primary);
  color: #fff;
}
.pf-glossary-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: .5rem;
  line-height: 1.3;
  transition: color var(--pf-transition);
}
.pf-glossary-card:hover .pf-glossary-card__title {
  color: var(--pf-primary);
}
.pf-glossary-card__desc {
  color: var(--pf-text-muted);
  font-size: .875rem;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1.5rem;
}
.pf-glossary-card__more {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--pf-text-muted);
  transition: all var(--pf-transition);
  margin-top: auto;
}
.pf-glossary-card:hover .pf-glossary-card__more {
  color: var(--pf-primary);
  gap: .625rem;
}

/* === SINGLE TERMINAS === */

/* Main content wrapper */
.pf-term-content {
  max-width: 64rem;
  margin: 0 auto;
}

/* Card */
.pf-term-card {
  background: var(--pf-white);
  border-radius: var(--pf-radius-xl);
  padding: 2.5rem;
  box-shadow: var(--pf-shadow-md);
  border: 1px solid rgba(220,229,229,.4);
  margin-bottom: 3rem;
}
@media (min-width: 768px) {
  .pf-term-card {
    padding: 3rem 3.5rem;
  }
}
.pf-term-card__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 1.5rem;
}

/* Term navigation */
.pf-term-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(220,229,229,.5);
}
.pf-term-nav__link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--pf-text-muted);
  padding: .375rem 0;
  border-bottom: 2px solid transparent;
  transition: all var(--pf-transition);
}
.pf-term-nav__link:hover {
  color: var(--pf-primary);
}
.pf-term-nav__link.is-active {
  color: var(--pf-primary);
  border-bottom-color: var(--pf-primary);
}
.pf-term-nav__link svg {
  opacity: .6;
}
.pf-term-nav__link.is-active svg,
.pf-term-nav__link:hover svg {
  opacity: 1;
}

/* Description */
.pf-term-card__description {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--pf-text-main);
}
.pf-term-card__description p {
  margin-bottom: 1.25rem;
}
.pf-term-card__description p:last-child {
  margin-bottom: 0;
}

/* Two-column sections */
.pf-term-sections {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}
@media (min-width: 768px) {
  .pf-term-sections {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

/* Section titles */
.pf-term-section__title {
  display: flex;
  align-items: center;
  gap: .625rem;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}
.pf-term-section__title svg {
  color: var(--pf-text-muted);
  flex-shrink: 0;
}

/* Info items (Ką turite žinoti) */
.pf-term-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.pf-term-item {
  background: linear-gradient(135deg, rgba(123,157,156,.12) 0%, rgba(123,157,156,.06) 100%);
  border-radius: var(--pf-radius-lg);
  padding: 1.5rem;
  border: 1px solid rgba(123,157,156,.15);
  transition: all var(--pf-transition);
}
.pf-term-item:hover {
  box-shadow: var(--pf-shadow-md);
  border-color: rgba(123,157,156,.3);
}
.pf-term-item__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--pf-primary);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  flex-shrink: 0;
}
.pf-term-item__header {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .5rem;
}
.pf-term-item__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--pf-text-main);
}
.pf-term-item__text {
  font-size: .875rem;
  color: var(--pf-text-muted);
  line-height: 1.7;
}

/* Error items (Klaidos) */
.pf-term-errors {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.pf-term-error {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  background: var(--pf-white);
  border-radius: var(--pf-radius-lg);
  border: 1px solid rgba(220,229,229,.5);
  box-shadow: var(--pf-shadow);
  transition: all var(--pf-transition);
}
.pf-term-error:hover {
  box-shadow: var(--pf-shadow-md);
  border-color: rgba(220,229,229,.8);
}
.pf-term-error__dot {
  width: .625rem;
  height: .625rem;
  border-radius: 50%;
  background: #dc2626;
  flex-shrink: 0;
  margin-top: .375rem;
}
.pf-term-error__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .375rem;
  color: var(--pf-text-main);
}
.pf-term-error__text {
  font-size: .875rem;
  color: var(--pf-text-muted);
  line-height: 1.7;
}

/* DUK Section */
.pf-term-duk {
  max-width: 64rem;
  margin: 0 auto 3rem;
}
.pf-term-faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* === ADMIN REPEATER STYLES === */
.pf-repeater__item {
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 10px;
  position: relative;
}
.pf-repeater__item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.pf-repeater__item-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #7B9D9C;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.pf-repeater__remove {
  color: #d63638 !important;
  border-color: #d63638 !important;
  font-size: 18px !important;
  line-height: 1 !important;
  padding: 2px 8px !important;
}
.pf-repeater__remove:hover {
  background: #d63638 !important;
  color: #fff !important;
}
