/* Escola Irmã Verônica · Notícias do Facebook / Integração Meta */
.eiv-facebook-feed-section{position:relative;padding:24px 0 108px;background:linear-gradient(180deg,#f4f8fd 0%,#fff 100%);color:#092d63}
.eiv-facebook-feed-section .eiv-wrap{width:min(1330px,90%);margin-inline:auto}
.eiv-facebook-heading{display:flex;justify-content:space-between;align-items:end;gap:40px;margin:0 0 34px}
.eiv-facebook-eyebrow{display:inline-flex;align-items:center;gap:8px;color:#e81770;font-size:12px;font-weight:850;letter-spacing:.15em;margin-bottom:13px}
.eiv-facebook-eyebrow:before{content:'';width:19px;height:3px;border-radius:10px;background:#ed1973}
.eiv-facebook-heading h2{font-size:clamp(32px,3vw,48px);font-weight:850;letter-spacing:-.035em;color:#09295b;line-height:1.08;margin:0 0 13px}
.eiv-facebook-heading p{max-width:660px;font-size:17px;line-height:1.65;color:#5a718e;margin:0}
.eiv-facebook-follow{display:inline-flex;align-items:center;justify-content:center;gap:12px;padding:15px 20px;border-radius:999px;background:#0863c6;color:#fff!important;font-weight:800;text-decoration:none;white-space:nowrap;box-shadow:0 13px 26px rgba(4,76,159,.14);transition:transform .23s ease,box-shadow .23s ease}
.eiv-facebook-follow:hover{transform:translateY(-3px);box-shadow:0 19px 30px rgba(4,76,159,.23)}
.eiv-facebook-follow>span:first-child{font-size:24px;font-family:Arial,sans-serif;font-weight:900;line-height:.65}
.eiv-facebook-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:23px}
.eiv-facebook-card{display:flex;flex-direction:column;min-width:0;overflow:hidden;border:1px solid #e1eaf5;border-radius:25px;background:#fff;box-shadow:0 15px 36px rgba(10,48,100,.07);transition:transform .27s ease,box-shadow .27s ease,border-color .27s ease}
.eiv-facebook-card:hover{transform:translateY(-5px);box-shadow:0 24px 50px rgba(10,48,100,.12);border-color:#bfd5f0}
.eiv-facebook-card-photo{display:block;position:relative;overflow:hidden;aspect-ratio:1/1;background:#eaf3fc}
.eiv-facebook-card-photo img{display:block;width:100%;height:100%;object-fit:cover;object-position:center;transition:transform .65s cubic-bezier(.2,.7,.2,1)}
.eiv-facebook-card:hover .eiv-facebook-card-photo img{transform:scale(1.045)}
.eiv-facebook-photo-corner{position:absolute;right:13px;bottom:13px;padding:9px 12px;color:#fff;background:rgba(6,34,78,.81);font-size:12px;font-weight:800;border:1px solid rgba(255,255,255,.25);backdrop-filter:blur(8px);border-radius:999px}
.eiv-facebook-no-photo{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;width:100%;height:100%;background:linear-gradient(135deg,#09316c,#0865c6);color:#fff}
.eiv-facebook-no-photo span{display:grid;place-items:center;width:78px;height:78px;border-radius:23px;background:rgba(255,255,255,.16);font:900 67px Arial,sans-serif}
.eiv-facebook-no-photo small{font-size:14px;font-weight:750}
.eiv-facebook-card-body{display:flex;flex-direction:column;flex:1;padding:24px 25px 26px}
.eiv-facebook-card-meta{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:800;color:#46729e}
.eiv-facebook-mini-f{display:grid;place-items:center;width:24px;height:24px;background:#0866ca;color:#fff;font:900 18px Arial,sans-serif;border-radius:7px}
.eiv-facebook-card h3{margin:16px 0 10px;color:#072e66;font-size:21px;line-height:1.25;font-weight:850;letter-spacing:-.022em;overflow-wrap:anywhere}
.eiv-facebook-card p{color:#536e90;font-size:14px;line-height:1.65;margin:0 0 22px;overflow-wrap:anywhere}
.eiv-facebook-read{margin-top:auto;display:inline-flex;align-items:center;gap:10px;font-size:13px;font-weight:850;color:#0962bd!important;text-decoration:none}
.eiv-facebook-read:hover{text-decoration:underline}
.eiv-facebook-empty{display:flex;align-items:center;gap:24px;padding:36px 40px;border:1px solid #dfebf8;background:#fff;box-shadow:0 16px 40px rgba(10,48,100,.06);border-radius:28px}
.eiv-facebook-empty-icon{flex:none;display:grid;place-items:center;width:75px;height:75px;background:linear-gradient(145deg,#075cbd,#0c83dd);border-radius:20px;color:#fff;font:900 65px Arial,sans-serif}
.eiv-facebook-empty>div{flex:1}
.eiv-facebook-empty h3{font-size:23px;color:#092f68;letter-spacing:-.02em;margin:0 0 8px}
.eiv-facebook-empty p{font-size:15px;color:#526d90;max-width:650px;line-height:1.7;margin:0}
.eiv-facebook-empty>a{background:#095ab5;color:#fff!important;border-radius:14px;padding:14px 18px;font-weight:800;text-decoration:none;white-space:nowrap}
.eiv-facebook-empty>a:hover{background:#07478f}
@media(max-width:1050px){.eiv-facebook-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.eiv-facebook-heading{align-items:start;flex-direction:column;gap:22px}}
@media(max-width:680px){.eiv-facebook-feed-section{padding:10px 0 66px}.eiv-facebook-feed-section .eiv-wrap{width:91%}.eiv-facebook-grid{grid-template-columns:1fr;gap:16px}.eiv-facebook-heading{margin-bottom:23px}.eiv-facebook-heading h2{font-size:32px}.eiv-facebook-heading p{font-size:14px}.eiv-facebook-follow{font-size:13px;padding:13px 17px}.eiv-facebook-card-body{padding:21px}.eiv-facebook-card h3{font-size:19px}.eiv-facebook-empty{padding:22px;gap:16px;flex-wrap:wrap}.eiv-facebook-empty-icon{width:58px;height:58px;border-radius:15px;font-size:46px}.eiv-facebook-empty h3{font-size:20px}.eiv-facebook-empty p{font-size:14px}.eiv-facebook-empty>a{width:100%;text-align:center}}
@media(prefers-reduced-motion:reduce){.eiv-facebook-card,.eiv-facebook-card-photo img,.eiv-facebook-follow{transition:none!important}.eiv-facebook-card:hover,.eiv-facebook-follow:hover{transform:none!important}}

/* Central da Escola · Configuração do Facebook */
.eiv-fb-admin-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin-bottom:20px}
.eiv-fb-admin-stats>div,.eiv-fb-admin-panel{background:#fff;border:1px solid #e2eaf4;border-radius:22px;box-shadow:0 10px 28px rgba(10,51,104,.055)}
.eiv-fb-admin-stats>div{padding:22px 24px}
.eiv-fb-admin-stats span,.eiv-fb-admin-stats strong,.eiv-fb-admin-stats small{display:block}
.eiv-fb-admin-stats span{font-size:10px;font-weight:850;letter-spacing:.12em;color:#8192a8}
.eiv-fb-admin-stats strong{font-size:22px;color:#0b3976;margin:12px 0 5px}
.eiv-fb-admin-stats small{font-size:12px;color:#8091aa}
.eiv-fb-admin-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(320px,.8fr);align-items:start;gap:20px}
.eiv-fb-admin-panel{padding:29px}
.eiv-fb-admin-panel h2{font-size:20px;color:#102f61;margin:0 0 8px}
.eiv-fb-admin-panel p,.eiv-fb-admin-panel li{font-size:13px;color:#617792;line-height:1.7}
.eiv-fb-admin-panel ol{padding-left:19px;display:grid;gap:11px}
.eiv-fb-admin-heading{display:flex;align-items:center;gap:16px;border-bottom:1px solid #e7edf5;padding-bottom:19px;margin-bottom:22px}
.eiv-fb-admin-heading>.dashicons{flex:none;display:grid;place-items:center;background:#eaf3ff;color:#0961be;border-radius:15px;width:56px;height:56px;font-size:26px}
.eiv-fb-admin-heading p{margin:0}
.eiv-fb-form{display:grid;gap:18px}
.eiv-fb-form label{display:flex;flex-direction:column;gap:8px;font-size:13px;font-weight:800;color:#234a7b}
.eiv-fb-form input[type=url],.eiv-fb-form input[type=password],.eiv-fb-form input[type=text],.eiv-fb-form select{max-width:100%;width:100%;min-height:47px;padding:8px 12px;border:1px solid #dbe5f1;border-radius:11px}
.eiv-fb-form small{color:#7a8da7;font-size:11px;line-height:1.5;font-weight:500}
.eiv-fb-form-row{display:grid;grid-template-columns:1.5fr 1fr;gap:15px}
.eiv-fb-form .eiv-fb-toggle{display:flex;flex-direction:row;align-items:center;gap:14px;padding:15px 17px;border-radius:13px;background:#f2f7ff}
.eiv-fb-form .eiv-fb-toggle input{width:20px;height:20px;flex:none}
.eiv-fb-toggle b,.eiv-fb-toggle small{display:block}
.eiv-fb-disconnect{flex-direction:row!important;align-items:center;gap:8px!important;color:#a05058!important;font-size:12px!important;font-weight:700!important}
.eiv-fb-form-actions{border-top:1px solid #e7edf5;padding-top:22px;display:flex;gap:10px;flex-wrap:wrap}
.eiv-fb-admin-side{display:grid;gap:18px}
.eiv-fb-connection-status{display:flex;align-items:center;gap:9px;border-radius:10px;background:#fff6e8;color:#966423;padding:12px;margin-top:18px;font-size:12px}
.eiv-fb-connection-status.ok{background:#e9f8ef;color:#276b42}
.eiv-fb-connection-status span{width:9px;height:9px;background:#e69e30;border-radius:50%}
.eiv-fb-connection-status.ok span{background:#2aaf6d}
.eiv-fb-admin-error{border-radius:10px;background:#fff2f2;color:#a73942!important;padding:12px}
.eiv-fb-admin-panel code{font-size:11px;word-break:break-word}
@media(max-width:1100px){.eiv-fb-admin-grid{grid-template-columns:1fr}.eiv-fb-admin-stats{grid-template-columns:repeat(2,1fr)}}
@media(max-width:700px){.eiv-fb-admin-stats,.eiv-fb-form-row{grid-template-columns:1fr}.eiv-fb-admin-panel{padding:20px}}

/* Diagnóstico de permissões da Meta */
.eiv-fb-permission-help{background:#eef5ff;border:1px solid #cbdff7;border-radius:14px;padding:16px 18px;margin-top:15px;color:#15406f}
.eiv-fb-permission-help>strong{display:block;font-size:13px;line-height:1.5}
.eiv-fb-permission-help p{margin:8px 0 12px;font-size:12px;color:#496989;line-height:1.65}
.eiv-fb-permission-help a{color:#075db4;font-size:12px;font-weight:800}

/* Notícias: foto de capa quadrada e carregamento progressivo */
.eiv-facebook-card-photo{aspect-ratio:1/1!important;min-height:0}
.eiv-facebook-card-photo>img{width:100%!important;height:100%!important;object-fit:cover!important;object-position:center;display:block}
.eiv-facebook-more-box{display:flex;align-items:center;flex-direction:column;gap:13px;margin:42px auto 0}
.eiv-facebook-more-button{appearance:none;border:1px solid #d1dff1;background:#fff;color:#0c3c79;border-radius:999px;min-height:56px;padding:14px 24px;display:inline-flex;align-items:center;gap:19px;justify-content:center;font-size:15px;font-weight:850;box-shadow:0 12px 28px rgba(15,50,98,.08);cursor:pointer;transition:background .25s ease,box-shadow .25s ease,transform .25s ease}
.eiv-facebook-more-button:hover:not(:disabled){background:#eef5ff;box-shadow:0 16px 32px rgba(15,50,98,.12);transform:translateY(-2px)}
.eiv-facebook-more-button:focus-visible{outline:3px solid #0f83c6;outline-offset:4px}
.eiv-facebook-more-button:disabled{cursor:progress;opacity:.7}
.eiv-facebook-more-button[hidden]{display:none!important}
.eiv-facebook-more-arrow{display:grid;place-items:center;background:#e4efff;color:#0753a8;width:30px;height:30px;border-radius:50%;font-size:19px;transition:transform .3s ease}
.eiv-facebook-more-button:hover .eiv-facebook-more-arrow{transform:translateY(3px)}
.eiv-facebook-more-button.is-loading .eiv-facebook-more-arrow{animation:eiv-more-spin .85s linear infinite}
.eiv-facebook-more-status{color:#5c7292;font-size:13px;line-height:1.5;margin:0;text-align:center}
.eiv-facebook-more-status[hidden]{display:none}
@keyframes eiv-more-spin{to{transform:rotate(360deg)}}
@media(max-width:680px){.eiv-facebook-more-box{margin-top:27px}.eiv-facebook-more-button{width:100%;max-width:350px;font-size:14px}}
@media(prefers-reduced-motion:reduce){.eiv-facebook-more-button,.eiv-facebook-more-arrow{transition:none!important;animation:none!important}}
