/* ==========================================================================
   AMKAS Nepal — premium design layer
   Loaded after theme.css. Refines tokens, typography, header, hero, cards,
   buttons, forms and footer without changing markup structure.
   ========================================================================== */

:root {
    --p-ink: #062b35;
    --p-deep: #003b49;
    --p-deeper: #002530;
    --p-sky: #5cc5ff;
    --p-sky-soft: #e8f6ff;
    --p-sky-deep: #0874a8;
    --p-sand: #f6f9fb;
    --p-line: #e3ecf0;
    --p-muted: #5d747c;
    --p-gold: #f2b84b;
    --p-radius: 20px;
    --p-radius-sm: 12px;
    --p-shadow-sm:
        0 1px 2px rgba(0, 37, 48, 0.05), 0 4px 14px rgba(0, 37, 48, 0.05);
    --p-shadow:
        0 2px 4px rgba(0, 37, 48, 0.04), 0 18px 40px -12px rgba(0, 37, 48, 0.16);
    --p-shadow-lg:
        0 4px 8px rgba(0, 37, 48, 0.05), 0 32px 64px -16px rgba(0, 37, 48, 0.28);
    --p-ease: cubic-bezier(0.22, 0.8, 0.24, 1);
    --p-display: "Fraunces", "Noto Serif", Georgia, serif;
    --p-sans: "Plus Jakarta Sans", Montserrat, "Noto Sans", sans-serif;
}

/* ---------- Base ---------- */
body {
    font-family: var(--p-sans);
    color: var(--p-ink);
    background: #fff;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
::selection {
    background: var(--p-sky);
    color: var(--p-deeper);
}
h1,
h2,
h3,
.page-title,
.sec-tittle h2,
.theme-impact-heading {
    font-family: var(--p-display) !important;
    font-weight: 600 !important;
    letter-spacing: -0.02em;
    text-transform: none !important;
}
p {
    line-height: 1.75;
}
.char-block {
    padding: 120px 0;
}
.char-light,
.bg-surface {
    background: var(--p-sand);
}

/* ---------- Section headings ---------- */
.charitona-components .sec-tittle {
    margin-bottom: 56px;
}
.charitona-components .sec-tittle span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: var(--p-sky-soft);
    color: var(--p-sky-deep);
    font: 700 12px/1 var(--p-sans);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.charitona-components .sec-tittle span:before {
    position: static;
    transform: none;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--p-sky);
    box-shadow: 0 0 0 4px rgba(92, 197, 255, 0.28);
}
.charitona-components .sec-tittle h2 {
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.12;
    color: var(--p-deep);
}

/* ---------- Buttons ---------- */
.char-button,
.theme-original-header .donate-btn,
.theme-original-banner .banner-btn,
.theme-footer-button {
    border-radius: 999px !important;
    font-family: var(--p-sans) !important;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: none !important;
    box-shadow: 0 10px 24px -10px rgba(8, 116, 168, 0.6);
    transition:
        transform 0.3s var(--p-ease),
        box-shadow 0.3s var(--p-ease),
        background-color 0.2s;
}
.char-button,
.theme-original-banner .banner-btn {
    min-height: 58px;
    padding: 0 34px;
    background: linear-gradient(135deg, #7fd3ff, var(--p-sky) 55%, #3fb4f5);
    border: 0;
}
.char-button:hover,
.theme-original-header .donate-btn:hover,
.theme-original-banner .banner-btn:hover,
.theme-footer-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 32px -12px rgba(8, 116, 168, 0.7);
}
.char-button-dark {
    background: var(--p-deep) !important;
    box-shadow: 0 10px 24px -10px rgba(0, 37, 48, 0.7);
}
.char-button-outline,
.theme-original-banner .theme-banner-outline {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(8px);
    box-shadow: none;
}
.char-button-outline:hover,
.theme-original-banner .theme-banner-outline:hover {
    background: #fff !important;
    color: var(--p-deep) !important;
}

/* ---------- Header ---------- */
.theme-original-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: transparent;
}
.theme-original-header .top-header,
.theme-original-header .top-header-content {
    background: var(--p-deeper);
}
.theme-original-header .top-header-content {
    min-height: 44px;
    border-radius: 0;
    font-family: var(--p-sans);
}
.theme-original-header .contact-info {
    padding: 11px 24px;
    border-radius: 0;
    background: linear-gradient(135deg, #7fd3ff, var(--p-sky));
    font-size: 13px;
}
.theme-original-header .tp-links {
    font: 600 12px var(--p-sans);
    letter-spacing: 0.04em;
    text-transform: none;
    gap: 24px;
}
.theme-original-header .tp-links li + li {
    padding-left: 24px;
    border-color: rgba(255, 255, 255, 0.2);
}
.theme-top-note {
    font: 600 11px var(--p-sans);
    letter-spacing: 0.16em;
    color: #8fc9dc;
}
.theme-original-header .bottom-header {
    padding: 14px 0;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    border-bottom: 1px solid rgba(0, 59, 73, 0.07);
    box-shadow: 0 8px 30px -14px rgba(0, 37, 48, 0.16);
}
.theme-original-header .logo {
    width: 280px;
}
.theme-original-header .links {
    gap: 4px;
    font: 600 15px var(--p-sans);
}
.theme-original-header .links a {
    position: relative;
    display: block;
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--p-deep);
    transition:
        background-color 0.25s,
        color 0.25s;
}
.theme-original-header .links a:hover {
    background: var(--p-sky-soft);
    color: var(--p-sky-deep);
}
.theme-original-header .links a[aria-current="page"] {
    background: var(--p-deep);
    color: #fff;
}
.theme-original-header .donate-btn {
    padding: 15px 26px;
    font-size: 14px;
    background: linear-gradient(135deg, #7fd3ff, var(--p-sky) 55%, #3fb4f5);
}
.theme-original-mobile {
    padding: 18px 0 8px;
}
.theme-original-mobile > a:not(.donate-btn) {
    font: 600 15px var(--p-sans);
    border-color: var(--p-line);
}

/* ---------- Home hero ---------- */
.theme-original-banner .banner-slide {
    height: min(760px, 88vh);
    min-height: 560px;
}
.theme-original-banner .banner-slide:before {
    background:
        radial-gradient(
            ellipse at 20% 100%,
            rgba(92, 197, 255, 0.28),
            transparent 55%
        ),
        linear-gradient(
            180deg,
            rgba(0, 28, 37, 0.55) 0%,
            rgba(0, 37, 48, 0.72) 55%,
            rgba(0, 28, 37, 0.9) 100%
        );
}
.theme-original-banner .theme-banner-photo {
    animation: p-kenburns 18s ease-out both;
}
@keyframes p-kenburns {
    from {
        transform: scale(1.08);
    }
    to {
        transform: scale(1);
    }
}
.theme-original-banner .slider-contant {
    width: min(900px, calc(100% - 140px));
}
.theme-original-banner .slider-contant > * {
    animation: p-rise 0.9s var(--p-ease) both;
}
.theme-original-banner .slider-contant > :nth-child(2) {
    animation-delay: 0.12s;
}
.theme-original-banner .slider-contant > :nth-child(3) {
    animation-delay: 0.24s;
}
.theme-original-banner .slider-contant > :nth-child(4) {
    animation-delay: 0.36s;
}
@keyframes p-rise {
    from {
        opacity: 0;
        transform: translateY(26px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}
.theme-original-banner .theme-banner-kicker {
    padding: 9px 20px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: #d6f0ff;
    font: 700 12px var(--p-sans);
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
.theme-original-banner h1 {
    font: 600 clamp(40px, 5.6vw, 76px) / 1.08 var(--p-display) !important;
    letter-spacing: -0.03em;
    margin: 26px 0 22px;
    text-shadow: 0 4px 40px rgba(0, 20, 28, 0.4);
}
.theme-original-banner p {
    max-width: 680px;
    margin-inline: auto;
    font: 400 19px/1.7 var(--p-sans);
    color: rgba(255, 255, 255, 0.88);
}
.theme-banner-buttons {
    gap: 14px;
    margin-top: 40px;
}
.theme-slider-arrow {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(10px);
    transition:
        background-color 0.25s,
        color 0.25s,
        transform 0.3s var(--p-ease);
}
.theme-slider-arrow:hover {
    background: #fff;
    color: var(--p-deep);
    transform: translateY(-50%) scale(1.08);
}

/* ---------- Inner page banners ---------- */
.charitona-components.banner-sec {
    padding: 110px 0 120px;
    margin-bottom: 70px;
    overflow: visible;
    background:
        radial-gradient(
            ellipse at 85% 0%,
            rgba(92, 197, 255, 0.35),
            transparent 50%
        ),
        radial-gradient(
            ellipse at 0% 100%,
            rgba(8, 116, 168, 0.5),
            transparent 55%
        ),
        linear-gradient(135deg, var(--p-deeper), var(--p-deep) 60%, #0a5568);
}
.charitona-components.banner-sec:before {
    background-image: radial-gradient(
        rgba(255, 255, 255, 0.12) 1px,
        transparent 1px
    );
    background-size: 26px 26px;
    opacity: 0.6;
    mask-image: linear-gradient(180deg, #000, transparent 90%);
    -webkit-mask-image: linear-gradient(180deg, #000, transparent 90%);
}
.charitona-components .page-title {
    font-size: clamp(36px, 5vw, 62px) !important;
    line-height: 1.1 !important;
}
.theme-banner-description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.82);
}
.charitona-components .breadcrumb {
    bottom: -144px; /* straddles the banner edge: banner bottom padding (120px) + half the pill */
    padding: 13px 28px;
    border: 1px solid var(--p-line);
    border-radius: 999px;
    background: #fff;
    color: var(--p-deep);
    font: 600 14px var(--p-sans);
    box-shadow: var(--p-shadow);
}
.charitona-components .breadcrumb a:hover {
    color: var(--p-sky-deep);
}
.charitona-components .breadcrumb li[aria-current] {
    color: var(--p-sky-deep);
}
.theme-quick-exit {
    border-radius: 999px;
    background: #fff1ee;
    color: #a3281b;
    box-shadow: var(--p-shadow-sm);
}

/* ---------- Service cards ---------- */
.theme-service-grid {
    gap: 30px;
}
.charitona-components .service {
    border: 1px solid var(--p-line);
    border-radius: 28px;
    padding: 52px 32px 76px;
    background: linear-gradient(180deg, #fff, var(--p-sand));
    box-shadow: var(--p-shadow-sm);
    overflow: visible; /* the arrow button straddles the bottom edge */
    transition:
        transform 0.45s var(--p-ease),
        box-shadow 0.45s var(--p-ease),
        border-color 0.3s;
}
.charitona-components .service:before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(
        ellipse at 50% 110%,
        rgba(92, 197, 255, 0.28),
        transparent 65%
    );
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}
.charitona-components .service:hover {
    transform: translateY(-8px);
    border-color: rgba(92, 197, 255, 0.6);
    box-shadow: var(--p-shadow-lg);
}
.charitona-components .service:hover:before {
    opacity: 1;
}
.charitona-components .service-icon {
    display: inline-grid;
    place-items: center;
    width: 104px;
    height: 104px;
    margin-bottom: 20px;
    border-radius: 30px;
    background: var(--p-sky-soft);
}
.charitona-components .service-info span {
    color: var(--p-sky-deep);
    font: 700 12px var(--p-sans);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.charitona-components .service-info h3 {
    font-size: 26px !important;
    line-height: 1.2;
    color: var(--p-deep);
}
.charitona-components .next-link {
    border-radius: 50%;
    background: var(--p-deep);
    color: #fff;
    border: 5px solid #fff;
    width: 60px;
    height: 60px;
    bottom: -30px;
    box-shadow: 0 10px 24px -8px rgba(0, 37, 48, 0.55);
    transition:
        background-color 0.25s,
        transform 0.4s var(--p-ease);
}
.charitona-components .service:hover .next-link,
.charitona-components .next-link:hover {
    background: var(--p-sky);
    color: var(--p-deeper);
    transform: translateX(-50%) translateY(-4px);
}
.charitona-components .heading-bottom p {
    color: var(--p-muted);
}
.charitona-components .heading-bottom p a {
    color: var(--p-sky-deep);
    font-weight: 700;
}

/* ---------- Impact / mission ---------- */
.theme-impact {
    position: relative;
    overflow: hidden;
    padding: 120px 0;
    background:
        radial-gradient(
            ellipse at 90% 10%,
            rgba(92, 197, 255, 0.22),
            transparent 50%
        ),
        radial-gradient(
            ellipse at 0% 100%,
            rgba(8, 116, 168, 0.4),
            transparent 50%
        ),
        linear-gradient(135deg, var(--p-deeper), var(--p-deep));
}
.theme-impact:before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(
        rgba(255, 255, 255, 0.07) 1px,
        transparent 1px
    );
    background-size: 28px 28px;
    pointer-events: none;
}
.theme-impact-grid {
    position: relative;
    gap: 80px;
}
.theme-impact .theme-impact-kicker,
.charitona-components .about-content > span {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(92, 197, 255, 0.14);
    color: #8fd6ff;
    font: 700 12px var(--p-sans);
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.theme-impact .theme-impact-heading,
.theme-impact .about-content > h2 {
    margin: 22px 0;
    color: #fff;
    font-size: clamp(34px, 4.2vw, 58px);
    line-height: 1.08;
}
.theme-impact-since strong {
    color: var(--p-gold);
    font-family: var(--p-display);
}
.theme-impact-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 999px;
    background: #fff;
    color: var(--p-deep);
    text-decoration: none;
    transition:
        transform 0.3s var(--p-ease),
        gap 0.3s var(--p-ease);
}
.theme-impact.charitona-components .theme-impact-link {
    gap: 12px;
    margin-top: 32px;
    padding: 16px 30px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #7fd3ff, var(--p-sky) 55%, #3fb4f5);
    color: var(--p-deeper);
    font: 700 14px var(--p-sans);
    box-shadow: 0 14px 30px -12px rgba(92, 197, 255, 0.7);
}
.theme-impact.charitona-components .theme-impact-link:hover {
    background: #fff;
    color: var(--p-deep) !important;
    gap: 18px;
    transform: translateY(-2px);
}
.theme-impact-link:hover {
    gap: 16px;
    transform: translateY(-2px);
}
.theme-impact.charitona-components .counter-content {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 24px;
    background: linear-gradient(
        160deg,
        rgba(255, 255, 255, 0.12),
        rgba(255, 255, 255, 0.03)
    );
    backdrop-filter: blur(14px);
    transition:
        transform 0.4s var(--p-ease),
        border-color 0.3s;
}
.theme-impact.charitona-components .counter-content:hover {
    transform: translateY(-6px);
    border-color: rgba(92, 197, 255, 0.55);
}
.theme-impact.charitona-components .counter-content h2 {
    font-family: var(--p-display) !important;
    font-weight: 600 !important;
    font-size: clamp(36px, 3.6vw, 52px);
    background: linear-gradient(180deg, #fff, #a9ddf7);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.theme-impact.charitona-components .counter-content p {
    font: 600 12px/1.5 var(--p-sans);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #bfe3f3;
}

/* ---------- Program / content cards ---------- */
.theme-program-cards .theme-program-card,
.theme-program-grid .education-sec {
    border: 1px solid var(--p-line);
    border-radius: var(--p-radius);
    background: #fff;
    box-shadow: var(--p-shadow-sm);
    transition:
        transform 0.45s var(--p-ease),
        box-shadow 0.45s var(--p-ease);
}
.theme-program-cards .theme-program-card:hover,
.theme-program-grid .education-sec:hover {
    transform: translateY(-8px);
    box-shadow: var(--p-shadow-lg);
}
.theme-program-card-image {
    height: 240px;
    background: linear-gradient(135deg, #dff3ff, #f1faff);
}
.theme-program-card-image img {
    transition: transform 0.8s var(--p-ease);
}
.theme-program-card:hover .theme-program-card-image img {
    transform: scale(1.07);
}
.theme-program-card .education-info span {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--p-sky-soft);
    color: var(--p-sky-deep);
    font: 700 11px var(--p-sans);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.theme-program-card h3,
.theme-program-card h3 a {
    font-family: var(--p-display);
    font-size: 24px;
    line-height: 1.25;
    color: var(--p-deep);
}
.theme-program-card h3 a:hover {
    color: var(--p-sky-deep);
}
.theme-program-card p {
    color: var(--p-muted);
}
.theme-program-cards .theme-program-card-link {
    font-weight: 700;
    color: var(--p-sky-deep);
}
.theme-program-card-link span {
    transition: transform 0.3s var(--p-ease);
}
.theme-program-card:hover .theme-program-card-link span {
    transform: translateX(6px);
}

/* Generic cards that appear across listings (news, publications, campaigns, gallery) */
article,
.news-card,
.campaign-card,
.gallery-item {
    border-radius: var(--p-radius);
}
article img,
.gallery-item img {
    transition: transform 0.8s var(--p-ease);
}
article:hover img,
.gallery-item:hover img {
    transform: scale(1.04);
}

/* ---------- Forms ---------- */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="search"],
input[type="url"],
select,
textarea {
    border: 1.5px solid var(--p-line) !important;
    border-radius: var(--p-radius-sm) !important;
    background: #fff;
    font-family: var(--p-sans);
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}
input:focus,
select:focus,
textarea:focus {
    border-color: var(--p-sky) !important;
    box-shadow: 0 0 0 4px rgba(92, 197, 255, 0.25) !important;
    outline: none !important;
}
button[type="submit"],
input[type="submit"] {
    border-radius: 999px;
}

/* ---------- Footer ---------- */
.theme-original-footer {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(
            ellipse at 100% 0%,
            rgba(92, 197, 255, 0.16),
            transparent 45%
        ),
        linear-gradient(180deg, var(--p-deep), var(--p-deeper));
    color: #b9d3da;
}
.theme-original-footer .footer-bottom {
    padding: 100px 0 80px;
}
.theme-footer-grid {
    gap: 80px;
}
.theme-original-footer .ft-logo img {
    border-radius: 14px;
    padding: 12px 16px;
    box-shadow: var(--p-shadow);
}
.theme-original-footer .widget p {
    font: 400 15px/1.85 var(--p-sans);
}
.theme-original-footer .widget-title {
    margin: 28px 0 18px;
    font: 600 24px var(--p-display);
    letter-spacing: -0.01em;
}
.theme-original-footer .widget-title span {
    color: var(--p-sky);
    font-style: italic;
}
.theme-original-footer .wd-links {
    gap: 4px;
}
.theme-original-footer .wd-links a {
    display: inline-block;
    padding: 6px 0;
    transition:
        color 0.2s,
        transform 0.3s var(--p-ease);
}
.theme-original-footer .wd-links a:hover {
    color: var(--p-sky);
    transform: translateX(6px);
}
.theme-footer-button {
    padding: 16px 28px;
    background: linear-gradient(135deg, #7fd3ff, var(--p-sky) 55%, #3fb4f5);
    font-size: 14px;
}
.theme-original-footer .bottom-strip {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #7fa3ad;
}

/* ---------- Motion safety & responsive ---------- */
a:focus-visible,
button:focus-visible {
    outline-color: var(--p-sky-deep);
    outline-offset: 3px;
    border-radius: 8px;
}
@media (max-width: 1300px) {
    .theme-original-header .logo {
        width: 300px;
    }
}
@media (max-width: 900px) {
    .char-block,
    .theme-impact {
        padding: 80px 0;
    }
    .theme-original-banner .slider-contant {
        width: calc(100% - 48px);
    }
    .theme-original-banner p {
        font-size: 16px;
    }
    .theme-slider-arrow {
        display: none;
    }
    .theme-original-banner .banner-btn {
        min-height: 52px;
        padding: 0 26px;
    }
    .theme-footer-grid {
        gap: 48px;
    }
    .theme-impact-grid {
        gap: 48px;
    }
    .charitona-components.banner-sec {
        padding: 80px 0 90px;
        margin-bottom: 56px;
    }
    .charitona-components .breadcrumb {
        max-width: calc(100% - 40px);
        overflow: hidden;
        text-overflow: ellipsis;
    }
}
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================================================
   Hover & transition polish
   One easing curve everywhere; every property that changes on hover is
   listed explicitly so lifts, slides and colour fades all animate.
   ========================================================================== */
:root {
    --p-t: 0.4s var(--p-ease);
}

/* Buttons & pill links: lift, glow, press */
.char-button,
.theme-original-header .donate-btn,
.theme-original-banner .banner-btn,
.theme-footer-button,
.theme-impact.charitona-components .theme-impact-link,
.theme-slider-arrow {
    transition:
        transform var(--p-t),
        box-shadow var(--p-t),
        background-color 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease,
        gap var(--p-t);
    will-change: transform;
}
.char-button:active,
.theme-original-header .donate-btn:active,
.theme-original-banner .banner-btn:active,
.theme-footer-button:active,
.theme-impact.charitona-components .theme-impact-link:active {
    transform: translateY(-1px) scale(0.98);
    transition-duration: 0.12s;
}
.char-button span,
.theme-original-header .donate-btn span,
.theme-footer-button span {
    display: inline-block;
    transition: transform var(--p-t);
}
.char-button:hover span,
.theme-original-header .donate-btn:hover span,
.theme-footer-button:hover span {
    transform: translateX(5px);
}

/* Header nav pills */
.theme-original-header .links a {
    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        transform var(--p-t);
}
.theme-original-header .links a:hover {
    transform: translateY(-1px);
}
.theme-original-header .tp-links a,
.theme-original-footer a {
    transition:
        color 0.25s ease,
        transform var(--p-t);
}
.theme-original-header .logo a {
    display: block;
    transition:
        transform var(--p-t),
        opacity 0.3s;
}
.theme-original-header .logo a:hover {
    transform: scale(1.03);
}

/* Cards: unified lift + soft shadow bloom */
.charitona-components .service,
.theme-program-cards .theme-program-card,
.theme-blog-grid .blog-item,
.theme-news-links .support-content,
.theme-events-list .event-style-contant,
.theme-partners-section .partner-logo,
.theme-impact.charitona-components .counter-content,
.theme-gallery-grid .theme-gallery-item {
    transition:
        transform var(--p-t),
        box-shadow 0.5s ease,
        border-color 0.35s ease,
        background-color 0.35s ease;
    will-change: transform;
}

/* Service card details */
.charitona-components .service-icon {
    transition:
        transform var(--p-t),
        background-color 0.35s ease;
}
.charitona-components .service:hover .service-icon {
    transform: translateY(-4px) rotate(-4deg) scale(1.06);
    background: #d3efff;
}
.charitona-components .service-info h3 {
    transition: color 0.3s ease;
}
.charitona-components .service:hover .service-info h3 {
    color: var(--p-sky-deep);
}
.charitona-components .next-link {
    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        transform var(--p-t),
        box-shadow var(--p-t);
}

/* Text links: animated underline */
.theme-blog-grid .blog-info-content a,
.theme-news-links a,
.charitona-components .heading-bottom p a,
.theme-text-link {
    position: relative;
    display: inline-block;
    transition: color 0.25s ease;
}
.theme-blog-grid .blog-info-content a:after,
.theme-news-links a:after,
.charitona-components .heading-bottom p a:after,
.theme-text-link:after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -3px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--p-t);
}
.theme-blog-grid .blog-info-content a:hover:after,
.theme-news-links a:hover:after,
.charitona-components .heading-bottom p a:hover:after,
.theme-text-link:hover:after {
    transform: scaleX(1);
    transform-origin: left;
}
.theme-appeal .theme-text-link:after {
    display: none; /* it already has a static underline */
}

/* Images: slow, smooth zoom inside a clipped frame */
.theme-program-card-image,
.theme-blog-grid .blog-img,
.theme-gallery-grid .theme-gallery-item {
    overflow: hidden;
}
.theme-program-card-image img,
.theme-blog-grid .blog-img img,
.theme-gallery-grid .theme-gallery-item img {
    transition:
        transform 1s var(--p-ease),
        filter 0.6s ease;
    will-change: transform;
}

/* Form fields */
input,
select,
textarea {
    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        background-color 0.3s ease;
}
input:hover,
select:hover,
textarea:hover {
    border-color: rgba(92, 197, 255, 0.7) !important;
}

/* Smooth, restrained: don't animate on touch devices where hover sticks */
@media (hover: none) {
    .charitona-components .service:hover,
    .theme-program-cards .theme-program-card:hover,
    .theme-blog-grid .blog-item:hover,
    .theme-events-list .event-style-contant:hover,
    .theme-partners-section .partner-logo:hover {
        transform: none;
    }
}

/* ---------- Programs page fixes ---------- */
/* keep the "Learn more" link a flex row (arrow chip beside text) */
.theme-program-cards .theme-program-card-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.theme-program-card-link span {
    border-radius: 50%;
    background: var(--p-sky-soft);
    color: var(--p-sky-deep);
}
.theme-program-card:hover .theme-program-card-link span {
    background: var(--p-sky);
    color: var(--p-deeper);
}
/* tag pill overlaps the photo: make it a solid white chip so it reads on any image */
.theme-program-cards .education-info > span {
    background: #fff !important;
    box-shadow: 0 6px 16px -6px rgba(0, 37, 48, 0.3);
}
/* breadcrumb offset follows the banner's bottom padding on small screens */
@media (max-width: 900px) {
    .charitona-components .breadcrumb {
        bottom: -114px;
    }
}

/* ==========================================================================
   Mobile sidebar (hamburger drawer)
   ========================================================================== */
.theme-original-menu {
    display: none;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-left: 12px;
    border: 1px solid var(--p-line);
    border-radius: 14px;
    background: #fff;
    color: var(--p-deep);
    box-shadow: var(--p-shadow-sm);
    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        transform 0.3s var(--p-ease);
}
.theme-original-menu:hover {
    background: var(--p-deep);
    color: #fff;
}
.theme-original-menu:active {
    transform: scale(0.94);
}
@media (max-width: 1300px) {
    .theme-original-menu {
        display: grid;
        margin-left: 12px;
    }
}

.p-drawer-overlay {
    position: fixed;
    inset: 0;
    z-index: 998;
    background: rgba(0, 25, 33, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.4s ease,
        visibility 0s linear 0.4s;
}
.p-drawer-overlay.is-open {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease;
}

nav.p-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    display: flex;
    flex-direction: column;
    width: min(88vw, 380px);
    padding: 0;
    background:
        radial-gradient(
            ellipse at 100% 0%,
            rgba(92, 197, 255, 0.18),
            transparent 50%
        ),
        #fff;
    box-shadow: -30px 0 60px -20px rgba(0, 25, 33, 0.45);
    border-radius: 28px 0 0 28px;
    transform: translateX(104%);
    visibility: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    transition:
        transform 0.5s var(--p-ease),
        visibility 0s linear 0.5s;
}
nav.p-drawer.is-open {
    transform: none;
    visibility: visible;
    transition: transform 0.5s var(--p-ease);
}
.p-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 22px 18px 26px;
    border-bottom: 1px solid var(--p-line);
}
.p-drawer-logo {
    display: block;
    width: 250px;
}
.p-drawer-logo img {
    display: block;
    width: 100%;
    height: auto;
}
.p-drawer-close {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--p-sky-soft);
    color: var(--p-deep);
    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        transform 0.4s var(--p-ease);
}
.p-drawer-close:hover {
    background: var(--p-deep);
    color: #fff;
    transform: rotate(90deg);
}
.p-drawer-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 18px 16px;
}
.p-drawer-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 18px;
    border-radius: 16px;
    color: var(--p-deep);
    font: 600 16px var(--p-sans);
    opacity: 0;
    transform: translateX(24px);
    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        padding 0.3s var(--p-ease);
}
.p-drawer-links a:after {
    content: "→";
    opacity: 0;
    transform: translateX(-8px);
    transition:
        opacity 0.25s ease,
        transform 0.3s var(--p-ease);
}
.p-drawer-links a:hover {
    background: var(--p-sky-soft);
    color: var(--p-sky-deep);
    padding-left: 24px;
}
.p-drawer-links a:hover:after {
    opacity: 1;
    transform: none;
}
.p-drawer-links a[aria-current="page"] {
    background: var(--p-deep);
    color: #fff;
}
.p-drawer-links a[aria-current="page"]:after {
    opacity: 1;
    transform: none;
    color: var(--p-sky);
}
/* staggered entrance */
nav.p-drawer.is-open .p-drawer-links a {
    opacity: 1;
    transform: none;
    transition:
        opacity 0.5s ease calc(0.12s + var(--i, 0) * 0.04s),
        transform 0.5s var(--p-ease) calc(0.12s + var(--i, 0) * 0.04s),
        background-color 0.25s ease,
        color 0.25s ease,
        padding 0.3s var(--p-ease);
}
.p-drawer-links a:nth-child(1) {
    --i: 0;
}
.p-drawer-links a:nth-child(2) {
    --i: 1;
}
.p-drawer-links a:nth-child(3) {
    --i: 2;
}
.p-drawer-links a:nth-child(4) {
    --i: 3;
}
.p-drawer-links a:nth-child(5) {
    --i: 4;
}
.p-drawer-links a:nth-child(6) {
    --i: 5;
}
.p-drawer-links a:nth-child(7) {
    --i: 6;
}
.p-drawer-links a:nth-child(8) {
    --i: 7;
}
.p-drawer-foot {
    display: grid;
    gap: 14px;
    margin-top: auto;
    padding: 20px 22px 28px;
    border-top: 1px solid var(--p-line);
}
.p-drawer-foot .donate-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 24px;
    border-radius: 999px;
    background: linear-gradient(135deg, #7fd3ff, var(--p-sky) 55%, #3fb4f5);
    color: var(--p-deeper);
    font: 700 15px var(--p-sans);
    box-shadow: 0 14px 28px -12px rgba(8, 116, 168, 0.6);
}
.p-drawer-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--p-muted);
    font: 600 14px var(--p-sans);
}
.p-drawer-phone .material-symbols-outlined {
    font-size: 18px;
    color: var(--p-sky-deep);
}
/* lock page scroll while the sidebar is open */
html.p-menu-open,
html.p-menu-open body {
    overflow: hidden;
}
@media (min-width: 1301px) {
    .p-drawer-overlay,
    nav.p-drawer {
        display: none !important;
    }
}
@media (prefers-reduced-motion: reduce) {
    nav.p-drawer,
    .p-drawer-overlay {
        transition-duration: 0.01s !important;
    }
}

/* Phones: the Get Support button is hidden, so the hamburger itself must take the free space and sit flush right */
@media (max-width: 767px) {
    .theme-original-header .bottom-header-content {
        justify-content: space-between;
    }
    .theme-original-header .theme-original-menu {
        margin-left: auto;
        flex-shrink: 0;
    }
}
