/* ==========================================================================
   pages.css — stiluri mutate din blocurile <style> inline din fisierele Blade
   (curatenie: CSS-ul nu mai trebuie sa stea in fisierele de view).

   Incarcat o singura data, global, din resources/views/inc/style.blade.php,
   imediat dupa main.css -- de-aia sectiunile de mai jos sunt organizate pe
   fisierul Blade din care au fost mutate, ca sa fie usor de gasit / de
   verificat pentru conflicte de clase intre pagini.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Componenta comuna: pagini de tip "text lung" (legal-p)
   Folosita de: pages/ajutor.blade.php, pages/confidentialitate.blade.php,
   pages/termeni.blade.php, pages/contacte.blade.php.
   Cele 4 fisiere aveau propria copie a acestor reguli, aproape identica --
   contacte.blade.php avea 2 mici diferente fata de celelalte 3
   (letter-spacing cu semn opus pe .legal-p-h1, culoare hardcodata in loc de
   var(--ink-2) pe .legal-p-lede) -- pastrat un singur set canonic, ca sa nu
   avem 4 definitii care s-ar putea contrazice de-acum incolo, avand in
   vedere ca toate 4 sunt incarcate global.
   -------------------------------------------------------------------------- */
.legal-p { padding-top: clamp(24px, 3.5vh, 40px); padding-bottom: 60px; }
.legal-p-wrap { max-width: 760px; }
.legal-p-h1 { margin: 10px 0 20px; font-size: clamp(24px, 3vw, 34px); font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.legal-p-h2 { margin: 32px 0 10px; font-size: 19px; font-weight: 700; color: var(--ink); }
.legal-p-p { font-size: 15px; line-height: 1.75; color: var(--ink); margin: 0 0 16px; white-space: pre-wrap; }
.legal-p-lede { color: var(--ink-2, #667085); margin-bottom: 28px; }

/* --------------------------------------------------------------------------
   Componenta comuna: alerta de succes/eroare pe formulare publice (ippm-alert)
   Folosita de: pages/contacte.blade.php, pages/institutii.blade.php
   (popup "Devino partener"). Aceeasi observatie ca mai sus -- institutii.blade.php
   avea border-radius hardcodat (8px), contacte.blade.php folosea var(--r-in)
   (12px) -- pastrat versiunea cu variabila CSS, ca sa ramana in ton cu restul
   design-tokens-urilor din main.css.
   -------------------------------------------------------------------------- */
.ippm-alert { border-radius: var(--r-in, 10px); padding: 12px 16px; font-size: 14px; margin-bottom: 18px; }
.ippm-alert--ok { background: #e6f6ec; color: #1e7a3f; }
.ippm-alert--err { background: #fbe9e9; color: #a12626; }
.ippm-alert--err ul { margin: 0; padding-left: 18px; }

/* --------------------------------------------------------------------------
   Componenta comuna: formular in pop-up (ippm-form)
   Folosita de: pages/institutii.blade.php (popup "Devino partener").
   -------------------------------------------------------------------------- */
.ippm-form { display: flex; flex-direction: column; gap: 4px; }
.ippm-form label { font-weight: 600; font-size: 13px; margin-top: 10px; }
.ippm-form input, .ippm-form textarea { font: inherit; padding: 9px 11px; border: 1px solid #d8dde2; border-radius: 8px; }
.ippm-form button { margin-top: 16px; }

/* --------------------------------------------------------------------------
   inc/widget.blade.php -- widgetul de accesibilitate (asw-*), inclus global
   in layouts/app.blade.php pe toate paginile publice.
   -------------------------------------------------------------------------- */
.asw-menu{position:fixed;left:20px;top:20px;border-radius:24px;box-shadow:rgba(0,88,210,0.09) 0px 18px 42px 0px;opacity:1;transition:.3s;z-index:500000;overflow:hidden;background:#fff;width:500px;line-height:1;font-size:16px;height:calc(100% - 40px - 75px);letter-spacing:.015em;color:#00295A!important;font-family:-apple-system,"system-ui","SF Pro Text","Helvetica Neue",Arial,sans-serif;border:1px solid #D6E5F8}
.asw-menu,.asw-widget{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-weight:400;-webkit-font-smoothing:antialiased}
.asw-menu *,.asw-widget *{box-sizing:border-box}
.asw-menu-btn{position:fixed;z-index:500000;left:20px;bottom:20px;background:#0058D2!important;box-shadow:rgba(0,88,210,0.25) 0px 8px 24px 0px;transition:.3s;border-radius:16px;align-items:center;justify-content:center;transform:scale(1);width:54px;height:54px;display:flex;cursor:pointer;border:0}
.asw-rg{position:fixed;top:0;left:0;right:0;width:100%;height:0;pointer-events:none;background-color:rgba(0,0,0,.5);z-index:1000000}

/* --------------------------------------------------------------------------
   inc/cookie.blade.php -- banner de cookie-uri + modal de setari/preferinte
   -------------------------------------------------------------------------- */
.ckb { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9998; display: flex; justify-content: center; padding: 18px; pointer-events: none; }
.ckb[hidden] { display: none; }
.ckb-card { pointer-events: auto; background: #fff; border-radius: var(--r-card, 16px); box-shadow: 0 10px 40px rgba(10,20,30,.22); max-width: 560px; width: 100%; padding: 22px 24px; }
.ckb-h { margin: 0 0 8px; font-size: 17px; font-weight: 800; color: var(--ink); }
.ckb-p { margin: 0 0 16px; font-size: 13.5px; line-height: 1.6; color: var(--ink-2); }
.ckb-p a { color: var(--blue); text-decoration: underline; }
.ckb-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

.ckb-btn { font: inherit; font-weight: 700; font-size: 13.5px; border-radius: var(--r-pill, 100px); padding: 10px 18px; border: 1px solid transparent; cursor: pointer; white-space: nowrap; }
.ckb-btn--ghost { background: var(--blue-pale, #EEF7FD); color: var(--ink); border-color: var(--line); }
.ckb-btn--ghost:hover { filter: brightness(.97); }
.ckb-btn--link { background: none; border: none; color: var(--ink-2); text-decoration: underline; padding: 10px 4px; }
.ckb-btn--primary { background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%); color: #fff; margin-left: auto; }
.ckb-btn--primary:hover { filter: brightness(1.05); }
@media (max-width: 560px) {
    .ckb-actions { flex-direction: column; align-items: stretch; }
    .ckb-btn--primary { margin-left: 0; order: -1; }
}

.ckm-overlay { position: fixed; inset: 0; z-index: 9999; background: rgba(10, 15, 20, .55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.ckm-overlay[hidden] { display: none; }
.ckm-panel { position: relative; background: #fff; border-radius: 16px; max-width: 520px; width: 100%; max-height: 90vh; overflow-y: auto; padding: 30px 26px 26px; }
.ckm-close { position: absolute; top: 12px; right: 14px; border: 0; background: none; font-size: 24px; line-height: 1; cursor: pointer; color: var(--ink-2); }
.ckm-h { margin: 0 0 8px; font-size: 19px; font-weight: 800; color: var(--ink); padding-right: 24px; }
.ckm-lede { margin: 0 0 20px; font-size: 13.5px; line-height: 1.6; color: var(--ink-2); }

.ckm-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.ckm-row-t h3 { margin: 0 0 4px; font-size: 14.5px; font-weight: 700; color: var(--ink); }
.ckm-row-t p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--ink-2); }
.ckm-badge { flex: 0 0 auto; font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--blue-dark); background: var(--blue-pale, #EEF7FD); border: 1px solid var(--line); border-radius: var(--r-pill, 100px); padding: 5px 10px; white-space: nowrap; }

.ckm-sw { position: relative; flex: 0 0 auto; display: inline-flex; align-items: center; cursor: pointer; }
.ckm-sw input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ckm-sw-track { width: 42px; height: 24px; border-radius: 100px; background: #D7DEE5; transition: background .16s; display: inline-block; position: relative; }
.ckm-sw-thumb { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .16s; }
.ckm-sw input:checked + .ckm-sw-track { background: var(--blue); }
.ckm-sw input:checked + .ckm-sw-track .ckm-sw-thumb { transform: translateX(18px); }
.ckm-sw input:focus-visible + .ckm-sw-track { outline: 2px solid var(--blue); outline-offset: 2px; }

.ckm-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.ckm-actions .ckb-btn { flex: 1 1 auto; text-align: center; }

/* --------------------------------------------------------------------------
   inc/search-modal.blade.php -- pop-up de cautare live (din antet)
   -------------------------------------------------------------------------- */
.srch-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(23, 50, 77, .32);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 12vh 16px 16px;
}

.srch-overlay[hidden] {
    display: none;
}

.srch-panel {
    position: relative;
    width: 100%;
    max-width: 560px;
    max-height: 74vh;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: var(--r-card, 16px);
    box-shadow: 0 26px 64px rgba(23, 50, 77, .28), 0 2px 8px rgba(23, 50, 77, .1);
    overflow: hidden;
}

.srch-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line, #E3EEF6);
    flex: 0 0 auto;
}

.srch-ico {
    color: var(--ink-2, #6B7C8C);
    flex: 0 0 auto;
}

.srch-input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    font-size: 16px;
    font-family: inherit;
    color: var(--ink, #17324D);
    background: transparent;
}

.srch-input:focus {
    outline: none;
}

.srch-close {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-2, #6B7C8C);
    transition: .15s;
}

.srch-close:hover {
    background: rgba(23, 50, 77, .07);
    color: var(--blue, #1F75BC);
}

.srch-close:focus-visible {
    outline: 2px solid var(--blue, #1F75BC);
    outline-offset: 2px;
}

.srch-input:focus,
.srch-input:focus-visible {
    outline: none;
    box-shadow: none;
}

.srch-body {
    overflow-y: auto;
    padding: 8px;
}

.srch-msg {
    padding: 22px 14px;
    text-align: center;
    font-size: 13px;
    color: var(--ink-2, #6B7C8C);
}

.srch-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.srch-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 10px;
    border-radius: var(--r-in, 10px);
    color: var(--ink, #17324D);
    transition: .14s;
}

.srch-item:hover,
.srch-item:focus-visible {
    background: rgba(31, 117, 188, .08);
    color: var(--blue, #1F75BC);
    outline: none;
}

.srch-item-title {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 14px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.srch-item-type {
    flex: 0 0 auto;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--ink-2, #6B7C8C);
    background: rgba(23, 50, 77, .06);
    border-radius: var(--r-pill, 999px);
    padding: 3px 9px;
}

.srch-group-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--ink-2, #6B7C8C);
    padding: 10px 10px 4px;
}

/* --------------------------------------------------------------------------
   pages/activity-show.blade.php -- galeria foto + lightbox de pe pagina unei
   activitati.
   -------------------------------------------------------------------------- */
.actgal-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.actgal-thumb {
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    border-radius: 10px;
    overflow: hidden;
    line-height: 0;
}

.actgal-thumb img {
    width: 150px;
    height: 110px;
    object-fit: cover;
    display: block;
    border-radius: 10px;
    transition: transform .15s ease, opacity .15s ease;
}

.actgal-thumb:hover img,
.actgal-thumb:focus-visible img {
    transform: scale(1.03);
    opacity: .92;
}

.actgal-thumb:focus-visible {
    outline: 2px solid var(--blue, #1F75BC);
    outline-offset: 2px;
}

.actgal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(10, 15, 20, .92);
    display: flex;
    align-items: center;
    justify-content: center;
}

.actgal-overlay[hidden] {
    display: none;
}

.actgal-img {
    max-width: min(92vw, 1100px);
    max-height: 86vh;
    object-fit: contain;
    border-radius: 8px;
}

.actgal-close,
.actgal-nav {
    position: absolute;
    border: 0;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
}

.actgal-close:hover,
.actgal-nav:hover {
    background: rgba(255, 255, 255, .24);
}

.actgal-close {
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    font-size: 20px;
}

.actgal-nav {
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    font-size: 22px;
}

.actgal-nav--prev { left: 18px; }
.actgal-nav--next { right: 18px; }

.actgal-count {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 13px;
    margin: 0;
    opacity: .85;
}

@media (max-width: 640px) {
    .actgal-nav { width: 40px; height: 40px; font-size: 18px; }
    .actgal-close { width: 38px; height: 38px; font-size: 16px; }
}

/* --------------------------------------------------------------------------
   pages/catalog.blade.php
   -------------------------------------------------------------------------- */
.cat2 .cbody {
    display: block;
    padding: clamp(20px, 3vh, 30px) 0 var(--sp);
}

.fg .fgb {
    width: 100%;
}

a.fo {
    text-decoration: none;
}

a.fo.zero,
span.fo.zero {
    pointer-events: none;
}

@media (max-width: 860px) {
    #catFcol.is-open {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 60;
        background: #fff;
        overflow: auto;
        padding: 20px 20px 100px;
    }
}

/* --------------------------------------------------------------------------
   pages/institutii.blade.php -- pop-up "Devino partener"
   ("Componenta comuna: ippm-alert / ippm-form" e mai sus, aici doar bucata
   specifica acestei pagini: chenarul modalului in sine.)
   -------------------------------------------------------------------------- */
.ippm-overlay { position: fixed; inset: 0; z-index: 9999; background: rgba(10, 15, 20, .55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.ippm-overlay[hidden] { display: none; }
.ippm-panel { position: relative; background: #fff; border-radius: 12px; max-width: 480px; width: 100%; max-height: 90vh; overflow-y: auto; padding: 28px 24px 24px; }
.ippm-close { position: absolute; top: 10px; right: 12px; border: 0; background: none; font-size: 24px; line-height: 1; cursor: pointer; color: var(--ink-2, #666); }
.ippm-lede { color: var(--ink-2, #666); font-size: 14px; margin: 4px 0 16px; }

/* --------------------------------------------------------------------------
   pages/contacte.blade.php -- pagina publica /contacte
   -------------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: minmax(240px, 340px) 1fr; gap: 24px; align-items: start; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }

.ctc-card {
    background: var(--white);
    border: var(--bw) solid var(--line);
    border-radius: var(--r-card);
    box-shadow: var(--sh-card);
    padding: 28px 26px;
}

.ctc-info h2 { font-size: 17px; font-weight: 800; margin: 0 0 18px; color: var(--ink); }

.ctc-row { display: flex; gap: 14px; align-items: flex-start; margin-top: 18px; }
.ctc-row:first-of-type { margin-top: 0; }
.ctc-ic {
    flex: 0 0 auto;
    width: 38px; height: 38px;
    border-radius: 11px;
    background: var(--blue-pale);
    color: var(--blue-dark);
    display: flex; align-items: center; justify-content: center;
}
.ctc-ic svg { width: 19px; height: 19px; }
.ctc-info dt { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); margin: 0; }
.ctc-info dd { margin: 3px 0 0; font-size: 15px; line-height: 1.5; color: var(--ink); }
.ctc-info dd a { color: var(--blue); text-decoration: none; }
.ctc-info dd a:hover { text-decoration: underline; }

.ctc-form { display: flex; flex-direction: column; }
.ctc-field { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; }
.ctc-field:first-child { margin-top: 0; }
.ctc-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
@media (max-width: 560px) { .ctc-field-row { grid-template-columns: 1fr; } }
.ctc-field-row .ctc-field { margin-top: 0; }

.ctc-field label { font-weight: 700; font-size: 13.5px; color: var(--ink); }
.ctc-field input, .ctc-field textarea {
    font: inherit;
    font-size: 14.5px;
    padding: 12px 14px;
    border: var(--bw) solid var(--line);
    border-radius: var(--r-in);
    background: var(--blue-pale);
    color: var(--ink);
    transition: border-color .18s, box-shadow .18s, background .18s;
}
.ctc-field input::placeholder, .ctc-field textarea::placeholder { color: var(--ink-2); opacity: .7; }
.ctc-field input:focus, .ctc-field textarea:focus {
    outline: none;
    background: var(--white);
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(31, 117, 188, .12);
}
.ctc-field textarea { resize: vertical; min-height: 120px; }

.ctc-submit { margin-top: 22px; align-self: flex-start; }

/* ------------------------------------------------------------------ */
/* pages/harta-site.blade.php                                          */
/* ------------------------------------------------------------------ */
.stm-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
@media (max-width: 720px) { .stm-grid { grid-template-columns: 1fr; } }

.stm-card {
    background: var(--white);
    border: var(--bw) solid var(--line);
    border-radius: var(--r-card);
    box-shadow: var(--sh-card);
    padding: 24px 26px;
}
.stm-card h2 { font-size: 16px; font-weight: 800; margin: 0 0 14px; color: var(--ink); }

.stm-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.stm-list li { border-bottom: var(--bw) solid var(--line); padding-bottom: 10px; }
.stm-list li:last-child { border-bottom: none; padding-bottom: 0; }
.stm-list a { color: var(--blue-dark); text-decoration: none; font-size: 14.5px; line-height: 1.4; }
.stm-list a:hover { text-decoration: underline; color: var(--blue); }

.stm-empty { color: var(--ink-2); font-size: 14px; margin: 0; }

/* ------------------------------------------------------------------ */
/* pages/home.blade.php -- #povesti (buton "vezi filmarea" + lightbox   */
/* video YouTube, + copertă din thumbnail real cand povestea are video) */
/* ------------------------------------------------------------------ */
.rl-th {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.st-watch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 9px 16px;
    border: none;
    border-radius: 999px;
    background: var(--blue, #1F75BC);
    color: #fff;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: background .18s, transform .18s;
}
.st-watch svg { width: 15px; height: 15px; }
.st-watch:hover { background: var(--blue-dark, #175a92); }
.st-watch:focus-visible { outline: 2px solid var(--blue, #1F75BC); outline-offset: 2px; }
.st-watch[hidden] { display: none; }

.st-vid-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(10, 18, 28, .82);
}
.st-vid-overlay[hidden] { display: none; }

body.st-vid-lock { overflow: hidden; }

.st-vid-box {
    position: relative;
    width: min(920px, 100%);
}

.st-vid-frame-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: var(--r-card, 14px);
    overflow: hidden;
    background: #000;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}
.st-vid-frame-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.st-vid-close {
    position: absolute;
    top: -44px;
    right: 0;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    cursor: pointer;
    transition: background .18s;
}
.st-vid-close svg { width: 18px; height: 18px; }
.st-vid-close:hover { background: rgba(255, 255, 255, .26); }
.st-vid-close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ------------------------------------------------------------------ */
/* inc/footer.blade.php -- #ftSrc (surse de date fara link, din Dashboard) */
/* ------------------------------------------------------------------ */
.ft-src span {
    display: inline-block;
    font-size: 11px;
    color: #C4D6E5;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--r-pill);
    padding: 6px 13px;
}
