/* =========================================================
   Componente pagini instituție: acordeon, card contact, telefoane
   GeneratePress Child – Servicii-IT PRO
   ========================================================= */

/* ---------- Card contact / compartiment ---------- */
.pd-fisa {
    margin: 0 0 28px;
    padding: 22px;
    border: 1px solid #e3e8ef;
    border-left: 5px solid var(--pd-accent, #c9a227);
    border-radius: 12px;
    background: #f8fafc;
}
.pd-fisa__titlu {
    margin: 0 0 16px;
    font-size: 21px;
    color: var(--pd-primary-dark, #082c4d);
}
.pd-fisa__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px 24px;
}
.pd-fisa__b {
    display: flex;
    gap: 12px;
}
.pd-fisa__ic {
    flex: none;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--pd-soft, #eef3f8);
    color: var(--pd-primary, #0b3d6b);
}
.pd-fisa__b strong {
    display: block;
    margin-bottom: 3px;
    font-size: 13px;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #6b7280;
}
.pd-fisa__b p { margin: 0; line-height: 1.5; }
.pd-fisa__program {
    margin: 0;
    padding: 0;
    list-style: none;
    line-height: 1.6;
}
.pd-fisa__program li { margin: 0; }
.pd-fisa__contact {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
}
.pd-fisa__contact a,
.pd-fisa__map {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--pd-primary, #0b3d6b);
    font-weight: 600;
    text-decoration: none;
}
.pd-fisa__contact a:hover,
.pd-fisa__map:hover { text-decoration: underline; }
.pd-fisa__map { margin-top: 4px; font-size: 14px; }

/* ---------- Acordeon ---------- */
.pd-acc { margin: 0 0 32px; }
.pd-acc__titlu {
    margin: 0 0 14px;
    font-size: 24px;
    color: var(--pd-primary-dark, #082c4d);
}
.pd-acc__tools {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}
.pd-acc__search {
    position: relative;
    flex: 1 1 260px;
}
.pd-acc__search svg {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    color: #6b7280;
    pointer-events: none;
}
.pd-acc__search input {
    width: 100%;
    height: 46px;
    margin: 0;
    padding: 0 12px 0 38px;
    border: 1px solid #cfd8e3;
    border-radius: 8px;
    background: #fff;
    font: inherit;
}
.pd-acc__all {
    height: 46px;
    padding: 0 16px;
    border: 1px solid #cfd8e3;
    border-radius: 8px;
    background: #fff;
    color: var(--pd-primary, #0b3d6b);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
.pd-acc__all:hover { background: var(--pd-soft, #eef3f8); }
.pd-acc__search input:focus-visible,
.pd-acc__all:focus-visible,
.pd-acc__btn:focus-visible {
    outline: 3px solid rgba(201, 162, 39, .5);
    outline-offset: -2px;
}
.pd-acc__count {
    margin: 0 0 8px;
    font-size: 14px;
    color: #6b7280;
}

.pd-acc__items {
    border: 1px solid #e3e8ef;
    border-radius: 12px;
    overflow: hidden;
}
.pd-acc__item + .pd-acc__item { border-top: 1px solid #e3e8ef; }
.pd-acc__item[hidden] { display: none; }
.pd-acc__h { margin: 0; font-size: inherit; }
.pd-acc__btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 15px 16px;
    border: 0;
    background: #fff;
    color: var(--pd-primary-dark, #082c4d);
    font: inherit;
    font-size: 16.5px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}
.pd-acc__btn:hover { background: #f3f6f9; }
.pd-acc__item.is-open .pd-acc__btn { background: var(--pd-soft, #eef3f8); }
.pd-acc__nr {
    flex: none;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--pd-primary, #0b3d6b);
    color: #fff;
    font-size: 13.5px;
    font-weight: 700;
}
.pd-acc__t { flex: 1 1 auto; line-height: 1.35; }
.pd-acc__ico {
    flex: none;
    color: var(--pd-primary, #0b3d6b);
    transition: transform .2s ease;
}
.pd-acc__item.is-open .pd-acc__ico { transform: rotate(180deg); }

.pd-acc__panel { background: #fff; }
.pd-acc__panel[hidden] { display: none; }
.pd-acc__body {
    padding: 4px 18px 6px 58px;
    line-height: 1.65;
}
.pd-acc__body > *:first-child { margin-top: 0; }
.pd-acc__body ul,
.pd-acc__body ol { margin: 0 0 14px; padding-left: 20px; }
.pd-acc__body li { margin-bottom: 6px; }
.pd-acc__body h4 {
    margin: 16px 0 8px;
    font-size: 16px;
    color: var(--pd-primary-dark, #082c4d);
}
.pd-acc__link {
    margin: 0;
    padding: 0 18px 14px 58px;
    font-size: 14px;
}
.pd-acc__link a { color: #6b7280; }

/* link-uri către fișiere, în interiorul acordeonului */
.pd-acc__body a[href$=".pdf"],
.pd-acc__body a[href$=".doc"],
.pd-acc__body a[href$=".docx"],
.pd-acc__body a[href$=".xls"],
.pd-acc__body a[href$=".xlsx"],
.pd-acc__body a[href$=".odt"] {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 3px 6px 3px 0;
    padding: 7px 12px;
    border: 1px solid #e3e8ef;
    border-radius: 8px;
    background: var(--pd-soft, #eef3f8);
    color: var(--pd-primary, #0b3d6b);
    font-weight: 600;
    text-decoration: none;
}
.pd-acc__body a[href$=".pdf"]::before,
.pd-acc__body a[href$=".doc"]::before,
.pd-acc__body a[href$=".docx"]::before,
.pd-acc__body a[href$=".xls"]::before,
.pd-acc__body a[href$=".xlsx"]::before,
.pd-acc__body a[href$=".odt"]::before {
    content: "";
    width: 16px;
    height: 16px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6'/%3E%3C/svg%3E") center/contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6'/%3E%3C/svg%3E") center/contain no-repeat;
}
.pd-acc__body a[href$=".pdf"]:hover,
.pd-acc__body a[href$=".docx"]:hover { background: #dde7f1; }

/* ---------- Telefoane utile ---------- */
.pd-tel { margin: 0 0 32px; }
.pd-tel__titlu {
    margin: 0 0 12px;
    font-size: 22px;
    color: var(--pd-primary-dark, #082c4d);
}
.pd-tel__list {
    margin: 0;
    padding: 0;
    list-style: none;
    border: 1px solid #e3e8ef;
    border-radius: 12px;
    overflow: hidden;
}
.pd-tel__item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 12px 16px;
    border-bottom: 1px solid #edf1f5;
}
.pd-tel__item:last-child { border-bottom: 0; }
.pd-tel__item:nth-child(even) { background: #f8fafc; }
.pd-tel__ic {
    flex: none;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--pd-soft, #eef3f8);
    color: var(--pd-primary, #0b3d6b);
}
.pd-tel__n { flex: 1 1 auto; font-weight: 600; }
.pd-tel__n small {
    display: block;
    font-weight: 400;
    font-size: 14px;
    color: #6b7280;
}
.pd-tel__v {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    justify-content: flex-end;
}
.pd-tel__v a {
    color: var(--pd-primary, #0b3d6b);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}
.pd-tel__v a:hover { text-decoration: underline; }

/* ---------- Notă ---------- */
.pd-nota {
    display: flex;
    gap: 12px;
    margin: 0 0 22px;
    padding: 14px 16px;
    border-radius: 10px;
    background: var(--pd-soft, #eef3f8);
    color: var(--pd-text, #1f2937);
}
.pd-nota--atentie { background: #fdf6e3; }
.pd-nota__ic { flex: none; color: var(--pd-primary, #0b3d6b); }
.pd-nota--atentie .pd-nota__ic { color: #a16207; }
.pd-nota p { margin: 0 0 6px; }
.pd-nota p:last-child { margin-bottom: 0; }

@media (max-width: 600px) {
    .pd-fisa { padding: 16px; }
    .pd-acc__btn { padding: 13px 12px; gap: 10px; font-size: 15.5px; }
    .pd-acc__body,
    .pd-acc__link { padding-left: 14px; padding-right: 14px; }
    .pd-tel__item { flex-wrap: wrap; }
    .pd-tel__v { width: 100%; justify-content: flex-start; padding-left: 46px; }
}

@media print {
    .pd-acc__tools, .pd-acc__link { display: none !important; }
    .pd-acc__panel[hidden] { display: block !important; }
}
/* Acordeon: culoarea textului nu se mai schimbă la focus/hover/deschis */
.pd-acc .pd-acc__btn,
.pd-acc .pd-acc__btn:hover,
.pd-acc .pd-acc__btn:focus,
.pd-acc .pd-acc__btn:active,
.pd-acc .pd-acc__item.is-open > .pd-acc__h > .pd-acc__btn {
    color: var(--pd-primary-dark, #082c4d);
}
.pd-acc .pd-acc__btn:hover,
.pd-acc .pd-acc__btn:focus {
    background: #f3f6f9;
}
.pd-acc .pd-acc__item.is-open > .pd-acc__h > .pd-acc__btn {
    background: var(--pd-soft, #eef3f8);
}
.pd-acc .pd-acc__btn .pd-acc__t,
.pd-acc .pd-acc__btn .pd-acc__ico {
    color: inherit;
}
.pd-acc .pd-acc__nr {
    background: var(--pd-primary, #0b3d6b);
    color: #fff;
}