/* =========================================================
   Componente pagina de start + meniu sticky
   GeneratePress Child – Servicii-IT PRO
   Culorile vin din variabilele definite în style.css (:root)
   ========================================================= */

/* ---------- MENIU STICKY ---------- */
#site-navigation {
    position: sticky;
    top: 0;
    z-index: 500;
    transition: box-shadow .2s ease;
}
.admin-bar #site-navigation { top: 32px; }
@media (max-width: 782px) {
    .admin-bar #site-navigation { top: 46px; }
}
@media (max-width: 600px) {
    .admin-bar #site-navigation { top: 0; } /* bara de admin nu mai e fixă sub 600px */
}
#site-navigation.is-stuck {
    box-shadow: 0 6px 20px rgba(0, 0, 0, .22);
}
html { scroll-padding-top: 80px; } /* ancorele nu mai ajung sub meniu */

@media (max-width: 768px) {
    #site-navigation.toggled .main-nav > ul {
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
}

/* ---------- PAGINI FULL WIDTH (Beaver Builder) ---------- */
.full-width-content.separate-containers .site-main,
.full-width-content .site-main {
    margin: 0;
}
.full-width-content .inside-article,
.full-width-content .entry-content {
    padding: 0;
    margin: 0;
}

/* ---------- LAYOUT: secțiuni + coloane ---------- */
.pd-sec { padding: 48px 0; }
.pd-sec--mic { padding: 24px 0; }
.pd-sec--alb { background: #fff; }
.pd-sec--gri { background: #f3f6f9; }
.pd-sec--albastru { background: var(--pd-primary); }
.pd-sec__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}
.pd-sec .pd-sec__inner > * + * { margin-top: 24px; }

.pd-grid {
    display: grid;
    gap: 24px;
    align-items: stretch;
}
.pd-grid--1 { grid-template-columns: minmax(0, 1fr); }
.pd-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pd-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pd-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pd-grid > * { margin: 0; }

@media (max-width: 1024px) {
    .pd-grid--3,
    .pd-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
    .pd-sec { padding: 32px 0; }
    .pd-sec__inner { padding: 0 20px; }
    .pd-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- RESET liste în conținut ---------- */
.pd-quick__grid,
.pd-stats,
.pd-list__items,
.pd-person__contact {
    list-style: none;
    margin: 0;
    padding: 0;
}
.pd-quick__grid li,
.pd-stats li,
.pd-list__items li,
.pd-person__contact li { margin: 0; }

.pd-admin-note {
    padding: 12px 16px;
    border: 1px dashed #c0c7d1;
    border-radius: 8px;
    color: #6b7280;
}

/* ---------- BUTOANE ---------- */
.pd-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 8px;
    border: 2px solid transparent;
    background: var(--pd-primary);
    color: #fff;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.pd-btn svg {
    width: 18px;
    height: 18px;
    transition: transform .2s ease;
}
.pd-btn:hover,
.pd-btn:focus-visible {
    background: var(--pd-primary-dark);
    color: #fff;
}
.pd-btn:hover svg { transform: translateX(3px); }
.pd-btn:focus-visible {
    outline: 3px solid var(--pd-accent);
    outline-offset: 3px;
}
.pd-btn--accent {
    background: var(--pd-accent);
    color: var(--pd-primary-dark);
}
.pd-btn--accent:hover,
.pd-btn--accent:focus-visible {
    background: #dbb43a;
    color: var(--pd-primary-dark);
}
.pd-btn--ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, .7);
    color: #fff;
}
.pd-btn--ghost:hover,
.pd-btn--ghost:focus-visible {
    background: rgba(255, 255, 255, .12);
    border-color: #fff;
}

/* ---------- HERO ---------- */
.pd-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 460px;
    overflow: hidden;
    background: var(--pd-primary);
    color: #fff;
}
.pd-hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pd-hero.has-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(8, 44, 77, .92) 0%, rgba(8, 44, 77, .7) 45%, rgba(8, 44, 77, .15) 100%);
}
.pd-hero__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 72px 40px;
}
.pd-hero__content { max-width: 640px; }
.pd-hero__eyebrow {
    display: inline-block;
    margin: 0 0 12px;
    padding-bottom: 6px;
    border-bottom: 3px solid var(--pd-accent);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #fff;
}
.pd-hero .pd-hero__title {
    margin: 0 0 16px;
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 700;
    line-height: 1.1;
    color: #fff;
}
.pd-hero__text {
    font-size: 17px;
    line-height: 1.65;
    color: rgba(255, 255, 255, .9);
}
.pd-hero__text p { margin: 0 0 12px; }
.pd-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

/* ---------- BANDĂ ULTIMUL ANUNȚ ---------- */
.pd-strip {
    display: flex;
    align-items: stretch;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e3e8ef;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .05);
}
.pd-strip__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: none;
    padding: 12px 18px;
    background: var(--pd-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.pd-strip__label svg { width: 18px; height: 18px; color: var(--pd-accent); }
.pd-strip__link {
    flex: 1;
    min-width: 0;
    align-self: center;
    padding: 12px 18px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: var(--pd-text);
    font-weight: 500;
    text-decoration: none;
}
.pd-strip__link:hover { color: var(--pd-primary); text-decoration: underline; }
.pd-strip__date {
    flex: none;
    align-self: center;
    padding: 0 18px;
    font-size: 13px;
    color: #6b7280;
}

/* ---------- ACCES RAPID ---------- */
.pd-quick__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 16px;
}
.pd-quick__item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    height: 100%;
    padding: 22px;
    border-radius: 12px;
    background: var(--pd-primary);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .12);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.pd-quick__item:hover,
.pd-quick__item:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .2);
    color: #fff;
    filter: brightness(1.06);
}
.pd-quick__item:focus-visible {
    outline: 3px solid var(--pd-accent);
    outline-offset: 3px;
}
.pd-quick__icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .16);
}
.pd-quick__icon svg { width: 24px; height: 24px; }
.pd-quick__title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
}
.pd-quick__desc {
    font-size: 14px;
    line-height: 1.4;
    opacity: .88;
}

/* culori – automat pe rând sau alese cu clasa c-* din meniu */
.pd-quick__grid li:nth-child(5n+1) .pd-quick__item { background: var(--pd-primary); }
.pd-quick__grid li:nth-child(5n+2) .pd-quick__item { background: #1f7a4d; }
.pd-quick__grid li:nth-child(5n+3) .pd-quick__item { background: var(--pd-accent); color: var(--pd-primary-dark); }
.pd-quick__grid li:nth-child(5n+4) .pd-quick__item { background: #a23b2a; }
.pd-quick__grid li:nth-child(5n+5) .pd-quick__item { background: #0e7490; }

.pd-quick__grid .pd-quick__item.c-blue  { background: var(--pd-primary); color: #fff; }
.pd-quick__grid .pd-quick__item.c-green { background: #1f7a4d; color: #fff; }
.pd-quick__grid .pd-quick__item.c-gold  { background: var(--pd-accent); color: var(--pd-primary-dark); }
.pd-quick__grid .pd-quick__item.c-red   { background: #a23b2a; color: #fff; }
.pd-quick__grid .pd-quick__item.c-teal  { background: #0e7490; color: #fff; }
.pd-quick__grid li:nth-child(5n+3) .pd-quick__item:hover,
.pd-quick__grid .pd-quick__item.c-gold:hover { color: var(--pd-primary-dark); }
.pd-quick__grid li:nth-child(5n+3) .pd-quick__icon,
.pd-quick__grid .c-gold .pd-quick__icon { background: rgba(8, 44, 77, .12); }

/* ---------- STATISTICI ---------- */
.pd-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 24px;
    padding: 28px;
    background: #fff;
    border: 1px solid #e3e8ef;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(15, 23, 42, .06);
}
.pd-stats__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
}
.pd-stats__icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 6px;
    border-radius: 50%;
    background: var(--pd-soft);
    color: var(--pd-primary);
}
.pd-stats__icon svg { width: 24px; height: 24px; }
.pd-stats__value {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--pd-primary);
}
.pd-stats__label {
    font-size: 14px;
    color: #6b7280;
}

/* ---------- LISTE ARTICOLE ---------- */
.pd-list {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 28px;
    background: #fff;
    border: 1px solid #e3e8ef;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(15, 23, 42, .05);
}
.pd-list .pd-list__title {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e3e8ef;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--pd-primary);
}
.pd-list__title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 48px;
    height: 3px;
    border-radius: 2px;
    background: var(--pd-accent);
}
.pd-list__icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--pd-soft);
    color: var(--pd-primary);
    flex: none;
}
.pd-list__items { flex: 1; }
.pd-list__item {
    padding: 12px 0;
    border-bottom: 1px dashed #e3e8ef;
}
.pd-list__item:last-child { border-bottom: 0; }
.pd-list__item a {
    display: block;
    color: var(--pd-text);
    font-weight: 500;
    line-height: 1.45;
    text-decoration: none;
}
.pd-list__item a:hover,
.pd-list__item a:focus-visible {
    color: var(--pd-primary);
    text-decoration: underline;
}
.pd-list__item time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    font-size: 13px;
    color: #6b7280;
}
.pd-list__item time svg {
    width: 14px;
    height: 14px;
    color: var(--pd-accent);
}
.pd-list__empty { color: #6b7280; }
.pd-list .pd-btn {
    align-self: flex-start;
    margin-top: 18px;
}

/* ---------- PERSOANE ---------- */
.pd-person {
    display: flex;
    align-items: center;
    gap: 22px;
    height: 100%;
    padding: 24px;
    background: #fff;
    border: 1px solid #e3e8ef;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(15, 23, 42, .05);
}
.pd-person__media { flex: none; }
.pd-person__photo {
    display: block;
    width: 120px;
    height: 140px;
    object-fit: cover;
    object-position: top;
    border-radius: 12px;
}
.pd-person__initials {
    display: grid;
    place-items: center;
    width: 120px;
    height: 140px;
    border-radius: 12px;
    background: var(--pd-soft);
    color: var(--pd-primary);
    font-size: 38px;
    font-weight: 700;
    letter-spacing: .02em;
}
.pd-person__role {
    margin: 0 0 4px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #8a6d12;
}
.pd-person .pd-person__name {
    margin: 0 0 12px;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--pd-primary);
}
.pd-person__name a { color: inherit; text-decoration: none; }
.pd-person__name a:hover { text-decoration: underline; }
.pd-person__contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    font-size: 15px;
}
.pd-person__contact svg {
    width: 16px;
    height: 16px;
    color: var(--pd-accent);
    flex: none;
}
.pd-person__contact a {
    color: var(--pd-text);
    text-decoration: none;
}
.pd-person__contact a:hover { color: var(--pd-primary); text-decoration: underline; }

/* ---------- PROGRAM / AUDIENȚE ---------- */
.pd-program {
    height: 100%;
    padding: 28px;
    background: #fff;
    border: 1px solid #e3e8ef;
    border-left: 4px solid var(--pd-accent);
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(15, 23, 42, .05);
}
.pd-program .pd-program__title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    font-size: 19px;
    font-weight: 700;
    color: var(--pd-primary);
}
.pd-program__title svg { color: var(--pd-accent); }
.pd-program__text {
    margin: 0 0 18px;
    line-height: 1.7;
    color: var(--pd-text);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
    .pd-hero { min-height: 380px; }
    .pd-hero__inner { padding: 48px 20px; }
    .pd-hero.has-image::after {
        background: linear-gradient(180deg, rgba(8, 44, 77, .75) 0%, rgba(8, 44, 77, .92) 100%);
    }
    .pd-strip { flex-wrap: wrap; }
    .pd-strip__label { width: 100%; }
    .pd-strip__link { white-space: normal; }
    .pd-strip__date { padding: 0 18px 12px; }
    .pd-list,
    .pd-program,
    .pd-stats { padding: 22px; }
    .pd-person { flex-direction: column; text-align: center; }
    .pd-person__contact li { justify-content: center; }
    .pd-quick__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .pd-quick__item { padding: 16px; }
}
@media (max-width: 420px) {
    .pd-quick__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .pd-btn, .pd-btn svg, .pd-quick__item, #site-navigation { transition: none !important; }
}

/* =========================================================
   DOCUMENTE PDF ATAȘATE (pagina articolului)
   ========================================================= */
.pd-btn--light {
    background: var(--pd-soft);
    color: var(--pd-primary);
}
.pd-btn--light:hover,
.pd-btn--light:focus-visible {
    background: #dde7f1;
    color: var(--pd-primary-dark);
}

.pd-pdf {
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid #e3e8ef;
}
.pd-pdf .pd-pdf__title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    font-size: 20px;
    font-weight: 700;
    color: var(--pd-primary);
}
.pd-pdf__title svg { width: 22px; height: 22px; color: var(--pd-accent); }
.pd-pdf__count {
    display: inline-grid;
    place-items: center;
    min-width: 26px;
    height: 26px;
    padding: 0 8px;
    border-radius: 13px;
    background: var(--pd-soft);
    font-size: 14px;
}

.pd-pdf__item {
    margin-bottom: 16px;
    background: #fff;
    border: 1px solid #e3e8ef;
    border-radius: 12px;
    overflow: hidden;
}
.pd-pdf__head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px 16px;
    padding: 16px 18px;
}
.pd-pdf__badge {
    flex: none;
    display: grid;
    place-items: center;
    width: 44px;
    height: 52px;
    border-radius: 6px;
    background: #b42318;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
}
.pd-pdf__meta {
    flex: 1 1 240px;
    min-width: 0;
}
.pd-pdf__name {
    display: block;
    color: var(--pd-text);
    font-weight: 600;
    line-height: 1.4;
    overflow-wrap: anywhere;
}
.pd-pdf__details {
    font-size: 13px;
    color: #6b7280;
}
.pd-pdf__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.pd-pdf__actions .pd-btn { padding: 9px 16px; }

.pd-pdf__preview { border-top: 1px solid #e3e8ef; }
.pd-pdf__preview summary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #f8fafc;
    color: var(--pd-primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}
.pd-pdf__preview summary::-webkit-details-marker { display: none; }
.pd-pdf__preview summary::after {
    content: "▾";
    margin-left: auto;
    transition: transform .2s ease;
}
.pd-pdf__preview[open] summary::after { transform: rotate(180deg); }
.pd-pdf__preview summary:focus-visible {
    outline: 3px solid var(--pd-accent);
    outline-offset: -3px;
}
/* Vizualizator PDF.js */
.pd-viewer { background: #525659; }
.pd-viewer__bar {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    background: #323639;
    color: #e8eaed;
    font-size: 14px;
}
.pd-viewer__bar button {
    display: inline-grid;
    place-items: center;
    min-width: 34px;
    height: 34px;
    margin: 0;
    padding: 0 10px;
    border: 0;
    border-radius: 6px;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    font: inherit;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}
.pd-viewer__bar button.pd-viewer__fit { font-size: 13px; font-weight: 600; }
.pd-viewer__bar button:hover { background: rgba(255, 255, 255, .2); }
.pd-viewer__bar button:focus-visible {
    outline: 2px solid var(--pd-accent);
    outline-offset: 1px;
}
.pd-viewer__pageinfo { padding: 0 6px; white-space: nowrap; }
.pd-viewer__zoom { min-width: 48px; text-align: center; }
.pd-viewer__sep {
    width: 1px;
    height: 20px;
    margin: 0 6px;
    background: rgba(255, 255, 255, .25);
}
.pd-viewer:not(.is-ready) .pd-viewer__bar button { opacity: .4; pointer-events: none; }
.pd-viewer.has-error .pd-viewer__bar { display: none; }

.pd-viewer__pages {
    height: 75vh;
    min-height: 420px;
    max-height: 900px;
    overflow: auto;
    padding: 12px;
    -webkit-overflow-scrolling: touch;
}
.pd-viewer__pages:focus-visible {
    outline: 3px solid var(--pd-accent);
    outline-offset: -3px;
}
.pd-viewer__page {
    margin: 0 auto 12px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}
.pd-viewer__page canvas { display: block; }
.pd-viewer__status {
    margin: 40px auto;
    max-width: 460px;
    color: #e8eaed;
    text-align: center;
}
.pd-viewer__status.is-error {
    padding: 16px;
    border-radius: 8px;
    background: rgba(0, 0, 0, .25);
}

/* ---------- Loader document ---------- */
.pd-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    padding: 24px;
    color: #e8eaed;
    text-align: center;
}
.pd-loader__doc {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 7px;
    width: 72px;
    height: 94px;
    padding: 18px 12px 12px;
    overflow: hidden;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
    animation: pd-float 2.4s ease-in-out infinite;
}
.pd-loader__doc::before {           /* colț îndoit */
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    border-style: solid;
    border-width: 0 16px 16px 0;
    border-color: #525659 #525659 #d7dde5 #d7dde5;
}
.pd-loader__line {
    display: block;
    height: 5px;
    border-radius: 3px;
    background: #d7dde5;
}
.pd-loader__line.is-short { width: 60%; }
.pd-loader__scan {                  /* linie aurie care „scanează” pagina */
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background: var(--pd-accent);
    box-shadow: 0 0 10px 2px rgba(201, 162, 39, .6);
    animation: pd-scan 1.6s ease-in-out infinite;
}
.pd-loader__label {
    margin: 22px 0 12px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}
.pd-loader__bar {
    position: relative;
    width: min(280px, 80%);
    height: 6px;
    overflow: hidden;
    border-radius: 3px;
    background: rgba(255, 255, 255, .15);
}
.pd-loader__fill {
    display: block;
    width: 0;
    height: 100%;
    border-radius: 3px;
    background: var(--pd-accent);
    transition: width .25s ease;
}
.pd-loader__bar.is-indeterminate .pd-loader__fill {
    width: 35%;
    animation: pd-indeterminate 1.3s ease-in-out infinite;
}
.pd-loader__info {
    min-height: 1.4em;
    margin: 10px 0 0;
    font-size: 13px;
    color: rgba(232, 234, 237, .75);
    font-variant-numeric: tabular-nums;
}

/* ---------- Pagini-schelet până la desenare ---------- */
.pd-viewer__page.is-loading {
    position: relative;
    overflow: hidden;
}
.pd-skel {
    display: flex;
    flex-direction: column;
    gap: 3.2%;
    height: 100%;
    padding: 10% 9%;
}
.pd-skel span {
    display: block;
    flex: none;
    height: 1.4%;
    min-height: 6px;
    border-radius: 4px;
    background: #e9edf2;
}
.pd-skel span.is-short { width: 62%; }
.pd-skel .pd-skel__title {
    width: 70%;
    height: 2.6%;
    min-height: 12px;
    margin-bottom: 3%;
    background: #dfe4eb;
}
.pd-viewer__page.is-loading::after {  /* reflexie care trece peste pagină */
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .75) 50%, transparent 80%);
    transform: translateX(-100%);
    animation: pd-shimmer 1.4s ease-in-out infinite;
}

@keyframes pd-scan {
    0%   { top: 0; }
    50%  { top: calc(100% - 3px); }
    100% { top: 0; }
}
@keyframes pd-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-5px); }
}
@keyframes pd-indeterminate {
    0%   { transform: translateX(-110%); }
    100% { transform: translateX(310%); }
}
@keyframes pd-shimmer {
    100% { transform: translateX(100%); }
}
@media (prefers-reduced-motion: reduce) {
    .pd-loader__doc,
    .pd-loader__scan,
    .pd-viewer__page.is-loading::after { animation: none; }
    .pd-loader__bar.is-indeterminate .pd-loader__fill { animation: none; width: 100%; opacity: .5; }
}
@media (max-width: 768px) {
    .pd-viewer__pages { height: 70vh; min-height: 360px; padding: 8px; }
    .pd-viewer__sep { display: none; }
}

@media (max-width: 600px) {
    .pd-pdf__actions { width: 100%; }
    .pd-pdf__actions .pd-btn { flex: 1; justify-content: center; }
}

.pd-pdf__actions .pd-btn:hover svg { transform: none; }

/* =========================================================
   FOOTER – coloane cu link-uri + bara de jos
   ========================================================= */

/* 4 sau 5 coloane când sunt asociate meniuri la „Footer – coloana 2/3” */
@media (min-width: 1025px) {
    .pd-footer__inner:has(> :nth-child(4)) { grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; }
    .pd-footer__inner:has(> :nth-child(5)) { grid-template-columns: 1.3fr repeat(4, 1fr); gap: 32px; }
}
@media (min-width: 769px) and (max-width: 1024px) {
    .pd-footer__inner:has(> :nth-child(4)) { grid-template-columns: 1fr 1fr; }
}

/* Bara de jos */
.site-footer .site-info .inside-site-info { padding-top: 16px; padding-bottom: 16px; }
.site-footer .copyright-bar { width: 100%; }
.pd-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 24px;
    width: 100%;
    font-size: 14px;
    text-align: left;
}
.pd-bottom__copy { color: rgba(255, 255, 255, .75); }

.pd-bottom__menu {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.pd-bottom__menu li { margin: 0; }
.site-footer .pd-bottom__menu a {
    color: rgba(255, 255, 255, .85);
    text-decoration: none;
}
.site-footer .pd-bottom__menu a:hover,
.site-footer .pd-bottom__menu a:focus-visible {
    color: #fff;
    text-decoration: underline;
}

/* Semnătura realizatorului */
.pd-bottom__credit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, .6);
    font-size: 13px;
}
.site-footer .pd-credit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px 4px 8px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: border-color .2s ease, background .2s ease;
}
.pd-credit__icon {
    color: var(--pd-accent);
    transition: transform .25s ease;
}
.site-footer a.pd-credit:hover,
.site-footer a.pd-credit:focus-visible {
    border-color: var(--pd-accent);
    background: rgba(201, 162, 39, .12);
    color: #fff;
}
.site-footer a.pd-credit:hover .pd-credit__icon { transform: rotate(-8deg) scale(1.1); }
.site-footer a.pd-credit:focus-visible {
    outline: 2px solid var(--pd-accent);
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .pd-bottom {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }
    .pd-bottom__menu { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
    .pd-credit, .pd-credit__icon { transition: none; }
}
