/* Light visual refresh of the public pages About Us (aboutV3), Our Rabbis (rabbiV3), Contact Us (contactV3) and Donate (donate).
   Same layout and content as before, softer and more modern details, matching home-refresh.css (home page).
   Also Privacy Policy (privacyV3) and Terms of Service (termsOfService).
   Only applies to body.page-refresh (about, rabbis, contact, privacy, terms) and body.donate-refresh (donate).
   To go back to the previous look on a page, remove the <link> to this file in its view (and the body class). */

.page-refresh,
.donate-refresh {
    --pr-brand: #002EFF;
    --pr-brand-light: #3d63ff;
    --pr-text: #0f172a;
    --pr-body: #475569;
    --pr-muted: #64748b;
    --pr-faint: #94a3b8;
    --pr-soft: #eef2ff;
    --pr-border: #e2e8f0;
}

/* =========================================================
   About, Our Rabbis, Contact
   ========================================================= */

/* Header: frosted, softer line */
.page-refresh .menu {
    background-color: rgba(255, 255, 255, 0.85);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom-color: rgba(15, 23, 42, 0.06);
}

/* Menu: pill links (same as the home page) */
.page-refresh .menu ul li {
    margin-right: 4px;
}
.page-refresh .menu ul li a {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    line-height: 20px;
    color: var(--pr-muted);
    transition: background-color .2s ease, color .2s ease;
}
.page-refresh .menu ul li a:hover {
    background: #f1f5f9;
    color: var(--pr-text);
}
.page-refresh .menu ul li.active a {
    background: var(--pr-soft);
    color: var(--pr-brand);
}

/* Content */
.page-refresh .box h1 {
    color: var(--pr-text);
    letter-spacing: -0.02em;
}
.page-refresh .box h2 {
    color: var(--pr-text);
    letter-spacing: -0.01em;
}
.page-refresh .box p {
    font-family: 'gregular', arial; /* homeV3.css has a typo here ('gregboldgular'), so the text fell back to Arial */
    color: var(--pr-body);
    line-height: 1.7;
}
.page-refresh .box p a {
    text-decoration: underline;
    text-decoration-color: rgba(0, 46, 255, 0.3);
    text-underline-offset: 3px;
}
.page-refresh .box p a:hover {
    text-decoration-color: var(--pr-brand);
}
/* Our Rabbis: a thin divider between rabbis */
.page-refresh .rabbi-list p + h2 {
    margin-top: 8px; /* the rabbi's text already ends with blank lines */
    padding-top: 32px;
    border-top: 1px solid var(--pr-border);
}

/* Privacy Policy / Terms of Service: more room above each section heading */
.page-refresh .box:not(.rabbi-list) p + h2 {
    margin-top: 32px;
    margin-bottom: 8px;
}

/* Footer links (the current page, Privacy or Terms, is darker) */
.page-refresh footer ul li a {
    color: var(--pr-faint);
    transition: color .2s ease;
}
.page-refresh footer ul li a:hover {
    color: var(--pr-brand);
}
.page-refresh footer ul li.active a {
    color: var(--pr-text);
}

/* Donate button (same as the home page) */
.page-refresh .donate-btn {
    height: auto;
    padding: 12px 24px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--pr-brand-light), var(--pr-brand));
    box-shadow: 0 8px 20px rgba(0, 46, 255, 0.28);
    transition: transform .2s ease, box-shadow .2s ease;
}
.page-refresh .donate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(0, 46, 255, 0.34);
}

@media only screen and (max-width: 640px) {
    .page-refresh .menu ul li a {
        padding: 4px 10px;
    }
    .page-refresh .menu ul li:first-child {
        margin-left: -10px; /* first label lines up with the logo and the title */
    }
}

/* =========================================================
   Donate (the GiveButter widgets themselves are not touched)
   ========================================================= */

.donate-refresh .menudonate li {
    margin-left: 4px;
}
.donate-refresh .menudonate li a {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    line-height: 20px;
    color: var(--pr-muted);
    transition: background-color .2s ease, color .2s ease;
}
.donate-refresh .menudonate li a:hover {
    background: #f1f5f9;
    color: var(--pr-text);
}
.donate-refresh .menudonate li.active a {
    background: var(--pr-soft);
    color: var(--pr-brand);
}

/* Cards: softer, deeper shadow */
.donate-refresh .content-box > div,
.donate-refresh #__givebutter_flow__main_container {
    box-shadow: 0 24px 48px -20px rgba(15, 23, 42, 0.25), 0 2px 6px rgba(15, 23, 42, 0.05);
}
.donate-refresh .content-box > div {
    border-color: var(--pr-border) !important; /* overrides the inline #DBDBDB */
}

.donate-refresh .my-footer a {
    opacity: .85;
    transition: opacity .2s ease;
}
.donate-refresh .my-footer a:hover {
    opacity: 1;
    color: #ffffff;
}

@media (prefers-reduced-motion: reduce) {
    .page-refresh .donate-btn {
        transition: none;
    }
    .page-refresh .donate-btn:hover {
        transform: none;
    }
}
