/* Refino visual da home da Paróquia Imaculado Coração de Maria */
:root {
    --home-refino-navy: #062642;
    --home-refino-blue: #0b3d66;
    --home-refino-gold: #d9a64f;
    --home-refino-gold-dark: #a46e29;
    --home-refino-cream: #f6f0e5;
    --home-refino-soft: #fbf8f1;
    --home-refino-line: rgba(6, 38, 66, .12);
    --home-refino-muted: #667487;
}

.community-hub { padding-top: 76px; padding-bottom: 62px; }
.community-hub .section-head { align-items: flex-end; margin-bottom: 26px; }
.community-hub-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(340px, .75fr); gap: 24px; align-items: stretch; }
.community-hub-card { position: relative; overflow: hidden; border: 1px solid var(--home-refino-line); border-radius: 26px; background: #fff; box-shadow: 0 18px 55px rgba(6, 38, 66, .08); }
.community-hub-card::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 18% 10%, rgba(217,166,79,.13), transparent 34%), radial-gradient(circle at 90% 95%, rgba(6,38,66,.08), transparent 28%); }
.community-hub-main { min-height: 390px; padding: 34px; display: flex; flex-direction: column; justify-content: space-between; }
.community-hub-card > * { position: relative; z-index: 1; }
.community-hub-topline { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; margin-bottom: 22px; }
.community-hub-title h3 { margin: 8px 0 8px; font-size: clamp(30px, 3.4vw, 48px); line-height: 1.02; letter-spacing: -.035em; color: var(--home-refino-navy); }
.community-hub-title p { max-width: 540px; margin: 0; color: var(--home-refino-muted); line-height: 1.65; }
.community-hub-icon { width: 64px; height: 64px; flex: 0 0 64px; display: inline-grid; place-items: center; border-radius: 22px; background: var(--home-refino-cream); color: var(--home-refino-gold-dark); font-size: 30px; box-shadow: inset 0 0 0 1px rgba(217,166,79,.2); }
.community-schedule-list { display: grid; gap: 10px; margin-top: 28px; }
.community-schedule-item { display: grid; grid-template-columns: 34px 1fr auto; gap: 14px; align-items: center; padding: 15px 16px; border: 1px solid rgba(6,38,66,.1); border-radius: 18px; background: rgba(255,255,255,.78); }
.community-schedule-item .star { width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: 999px; background: rgba(217,166,79,.13); color: var(--home-refino-gold-dark); font-size: 15px; }
.community-schedule-item b { display: block; color: var(--home-refino-navy); }
.community-schedule-item p { margin: 3px 0 0; color: var(--home-refino-muted); font-size: 14px; }
.community-schedule-item strong { color: var(--home-refino-navy); white-space: nowrap; }
.community-hub-side { display: grid; gap: 18px; }
.community-mini-card { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; min-height: 168px; padding: 24px; border-radius: 26px; border: 1px solid var(--home-refino-line); background: #fff; color: var(--home-refino-navy); box-shadow: 0 16px 46px rgba(6, 38, 66, .08); text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.community-mini-card:hover { transform: translateY(-2px); box-shadow: 0 20px 62px rgba(6, 38, 66, .13); }
.community-mini-card h3 { margin: 9px 0 8px; font-size: 24px; letter-spacing: -.02em; }
.community-mini-card p { margin: 0; color: rgba(18,39,61,.72); line-height: 1.5; }
.community-mini-card .mini-icon { position: absolute; right: 20px; top: 20px; width: 46px; height: 46px; display: inline-grid; place-items: center; border-radius: 16px; background: rgba(255,255,255,.22); font-size: 22px; }
.community-mini-card .mini-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-weight: 900; font-size: 14px; }
.community-mini-card.gold { background: linear-gradient(135deg, #fff7e7 0%, #f2dfbd 100%); }
.community-mini-card.gold::after { content: ""; position: absolute; right: -42px; bottom: -56px; width: 180px; height: 180px; border-radius: 999px; background: rgba(217,166,79,.2); }
.community-mini-card.navy { background: linear-gradient(135deg, #062642 0%, #0c416d 100%); color: #fff; }
.community-mini-card.navy p { color: rgba(255,255,255,.74); }
.community-mini-card.light { background: #f7fbff; }
.community-mini-card.light .mini-icon { background: rgba(6,38,66,.06); }
.community-hub-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.community-hub-actions .btn { min-height: 42px; }

/* Remove o card antigo do dízimo caso ainda exista por cache/markup anterior */
.dizimo-home-card.is-legacy-home-card { display: none !important; }

.news-refined { background: #fff; }
.news-refined .news-grid-refined { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.news-refined-card { overflow: hidden; padding: 0 !important; border: 1px solid var(--home-refino-line); border-radius: 24px; background: #fff; box-shadow: 0 16px 45px rgba(6,38,66,.07); transition: transform .18s ease, box-shadow .18s ease; }
.news-refined-card:hover { transform: translateY(-2px); box-shadow: 0 22px 58px rgba(6,38,66,.12); }
.news-refined-image { position: relative; display: block; height: 190px; background: linear-gradient(135deg, #062642, #d9a64f); overflow: hidden; text-decoration: none; }
.news-refined-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.news-refined-card:hover .news-refined-image img { transform: scale(1.04); }
.news-refined-placeholder { height: 100%; display: grid; place-items: center; color: rgba(255,255,255,.88); font-size: 14px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.news-refined-date { position: absolute; left: 16px; top: 16px; display: inline-flex; padding: 7px 10px; border-radius: 999px; background: rgba(255,255,255,.9); color: var(--home-refino-navy); font-size: 12px; font-weight: 900; box-shadow: 0 10px 25px rgba(0,0,0,.14); }
.news-refined-body { padding: 22px 22px 24px; }
.news-refined-body h3 { margin: 0 0 10px; font-size: 22px; line-height: 1.15; letter-spacing: -.02em; }
.news-refined-body h3 a { color: inherit; text-decoration: none; }
.news-refined-body h3 a:hover { text-decoration: underline; }
.news-refined-body p { color: var(--home-refino-muted); line-height: 1.58; margin-bottom: 16px; }
.news-refined-link { font-weight: 900; color: var(--home-refino-blue); text-decoration: none; }
.news-refined-link:hover { text-decoration: underline; }

@media (max-width: 1020px) {
    .community-hub-grid { grid-template-columns: 1fr; }
    .community-hub-side { grid-template-columns: repeat(3, 1fr); }
    .community-mini-card { min-height: 190px; }
    .news-refined .news-grid-refined { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 740px) {
    .community-hub { padding-top: 46px; }
    .community-hub-main { padding: 24px; min-height: auto; }
    .community-hub-topline { flex-direction: column-reverse; }
    .community-hub-side { grid-template-columns: 1fr; }
    .community-schedule-item { grid-template-columns: 30px 1fr; }
    .community-schedule-item strong { grid-column: 2; }
    .news-refined .news-grid-refined { grid-template-columns: 1fr; }
    .news-refined-image { height: 210px; }
}
