/* ==========================================================================
   GoHelpMe.online — front-end UI refresh (override layer)
   Paste into Admin → General Settings → Custom CSS (or load after
   dynamic-style.css). Only restyles; touches no markup or data.
   ========================================================================== */

:root {
    --gh-blue: #024b94;
    --gh-blue-dark: #013a73;
    --gh-teal: #00bdc0;
    --gh-ink: #0f1b2d;
    --gh-text: #4a5568;
    --gh-muted: #8a94a6;
    --gh-bg: #f6f8fb;
    --gh-card: #ffffff;
    --gh-line: #e6eaf0;
    --gh-green: #16a34a;
    --gh-radius: 14px;
    --gh-shadow: 0 1px 2px rgba(15, 27, 45, .04), 0 8px 24px rgba(15, 27, 45, .06);
    --gh-shadow-hover: 0 2px 4px rgba(15, 27, 45, .06), 0 16px 40px rgba(15, 27, 45, .12);
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body {
    color: var(--gh-text);
    background: #fff;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5 { color: var(--gh-ink); letter-spacing: -0.01em; }
img { max-width: 100%; height: auto; }
a, button { transition: color .2s, background-color .2s, border-color .2s, box-shadow .2s, transform .2s; }
:focus-visible { outline: 3px solid rgba(2, 75, 148, .35); outline-offset: 2px; }

/* Preloader: never let a spinner block the page for long */
.preloader { animation: gh-hide-preloader .2s ease 1.5s forwards; }
@keyframes gh-hide-preloader { to { opacity: 0; visibility: hidden; pointer-events: none; } }

/* ---------- Top bar + navigation ---------- */
.topbar-area.style-02 { background: var(--gh-ink) !important; }
.topbar-area .info-items li,
.topbar-area .social-link a { color: rgba(255, 255, 255, .8) !important; font-size: 14px; }
.topbar-area .social-link a:hover { color: #fff !important; }
.topbar-area .volunteer a { color: #fff !important; font-weight: 600; }

.navbar-area.charity-nav-06 {
    background: rgba(255, 255, 255, .96) !important;
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--gh-line);
    box-shadow: none;
}
.navbar-area .logo img { max-height: 52px; width: auto; }
.navbar-area .navbar-nav li a { font-weight: 500; color: var(--gh-ink) !important; }
.navbar-area .navbar-nav li a:hover { color: var(--gh-blue) !important; }
.navbar-toggler { border: 1px solid var(--gh-line) !important; border-radius: 10px; }

/* ---------- Buttons: one consistent system ---------- */
.boxed-btn,
.boxed-btn.btn-rounded,
.boxed-btn.reverse-color,
.boxed-btn.btn-color-three,
.boxed-btn.btn-dander,
.donate-btn {
    background: var(--gh-blue) !important;
    border: 0 !important;
    color: #fff !important;
    border-radius: 999px !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    letter-spacing: .01em;
    text-transform: none !important;
    padding: 12px 26px !important;
    box-shadow: 0 6px 16px rgba(2, 75, 148, .22);
}
.boxed-btn:hover,
.donate-btn:hover {
    background: var(--gh-blue-dark) !important;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(2, 75, 148, .3);
}
.btn-wrapper .boxed-btn { display: block; width: 100%; text-align: center; }

/* ---------- Hero ---------- */
.home-slide {
    background: linear-gradient(180deg, #eef4fb 0%, #fff 100%);
    padding: 48px 0 32px;
}
.home-slide .title,
.home-slide h1 {
    color: var(--gh-ink) !important;
    font-weight: 800 !important;
    font-size: clamp(2rem, 4.2vw, 3.4rem) !important;
    line-height: 1.1 !important;
    letter-spacing: -0.02em;
}
.home-slide .swiper-slide .card {
    border: 0;
    border-radius: var(--gh-radius);
    overflow: hidden;
    box-shadow: var(--gh-shadow);
}
.home-slide .swiper-slide img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.home-slide p { color: var(--gh-text); font-size: 1.1rem; }

/* Mobile "Start a Campaign" sticky CTA */
.campaign-mobile a {
    background: var(--gh-blue) !important;
    border-radius: 999px !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    padding: 14px 20px !important;
    box-shadow: 0 10px 30px rgba(2, 75, 148, .35);
}

/* ---------- Quick donate bar ("Rise Your Hand") ---------- */
.rise-area.style_02 .rise-flex-contents {
    background: var(--gh-blue);
    border-radius: 20px;
    padding: 22px 28px;
    gap: 16px;
    box-shadow: 0 18px 40px rgba(2, 75, 148, .25);
}
.rise-area .single-donate .title { color: #fff !important; font-weight: 800; }
.rise-area .nice-select,
.rise-area .user_input_number {
    border-radius: 12px !important;
    border: 0 !important;
    height: 50px !important;
    line-height: 50px !important;
}
.rise-area .donate-btn {
    background: var(--gh-teal) !important;
    color: var(--gh-ink) !important;
    height: 50px;
    box-shadow: none;
}
.rise-area .donate-btn:hover { background: #fff !important; }

/* ---------- Section titles ---------- */
.overlay-gradient { background: var(--gh-bg) !important; }
.section-title-five .title {
    font-weight: 800 !important;
    font-size: clamp(1.75rem, 3vw, 2.5rem) !important;
    color: var(--gh-ink) !important;
}
.section-title-five .title span {
    background: none !important;
    color: var(--gh-blue) !important;
    transform: none !important;
    padding: 0 !important;
}
.section-title-five .title span::before { display: none !important; } /* old slanted blue block */
.section-title.margin-bottom-80 { margin-bottom: 40px !important; }

/* Placeholder for a campaign with no photo */
.recent-thumb:not(:has(img)) { aspect-ratio: 16 / 10; background: linear-gradient(135deg, #e8f0fa, #d6f5f5); }

/* ---------- Campaign cards (featured + recent) ---------- */
.single-featured.style-02,
.recent-single.style-02 {
    background: var(--gh-card) !important;
    border: 1px solid var(--gh-line) !important;
    border-radius: var(--gh-radius) !important;
    overflow: hidden;
    box-shadow: var(--gh-shadow) !important;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.single-featured.style-02:hover,
.recent-single.style-02:hover {
    transform: translateY(-4px);
    box-shadow: var(--gh-shadow-hover) !important;
}
.recent-area .row > [class*="col-"] { display: flex; margin-bottom: 28px; }
.recent-single.margin-bottom-30 { margin-bottom: 0 !important; width: 100%; }

/* Same-shaped photos on every card */
.featured-image,
.recent-thumb { position: relative; overflow: hidden; border-radius: 0 !important; }
.featured-image img,
.recent-thumb img {
    width: 100% !important;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 0 !important;
    transition: transform .5s ease;
}
.single-featured:hover .featured-image img,
.recent-single:hover .recent-thumb img { transform: scale(1.04); }

.award-new-icon {
    background: rgba(255, 255, 255, .95) !important;
    color: var(--gh-blue) !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
}

.featured-contents,
.recent-contents {
    padding: 20px 22px 22px !important;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.featured-contents .title,
.recent-contents .title {
    font-size: 18px !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
    margin-bottom: 14px !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
}
.featured-contents .title a,
.recent-contents .title a { color: var(--gh-ink) !important; }
.featured-contents .title a:hover,
.recent-contents .title a:hover { color: var(--gh-blue) !important; }

/* Progress bar */
/* markup: .donation-progress > .progressbar (track) > .proggress (fill) */
.donation-progress .progressbar {
    background: #e8eef6 !important;
    border-radius: 999px !important;
    overflow: hidden;
}
.donation-progress .proggress {
    background: linear-gradient(90deg, var(--gh-blue), var(--gh-teal)) !important;
    border-radius: 999px !important;
    height: 8px !important;
}
.percentCount {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: var(--gh-blue) !important;
}

/* Raised / Goal row */
.goal {
    display: flex !important;
    justify-content: space-between;
    gap: 12px;
    margin: 14px 0 18px !important;
    padding-top: 14px;
    border-top: 1px solid var(--gh-line);
}
.goal .raised {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: var(--gh-muted) !important;
    margin: 0 !important;
}
.goal .raised span {
    display: block;
    font-size: 17px;
    font-weight: 800;
    margin-top: 2px;
}
.goal .raised .main-color-three { color: var(--gh-green) !important; }
.goal .raised .danger-color { color: var(--gh-ink) !important; }
.featured-contents .btn-wrapper,
.recent-contents .btn-wrapper { margin-top: auto; }

/* ---------- Success stories / About ---------- */
.success-mask2 img,
.about-area img { border-radius: var(--gh-radius); box-shadow: var(--gh-shadow); }
.success-contents p,
.about-text-contents p { font-size: 16.5px; line-height: 1.75; color: var(--gh-text); }
.success-contents .title a { color: var(--gh-ink) !important; }

/* ---------- Hide empty template sections that leave blank gaps ---------- */
.events-area-two:not(:has(.row > *:not(.col-lg-8))),
.client-area-two:not(:has(.client-slider > *)) { display: none !important; }

/* ---------- Footer ---------- */
.footer-area .footer-top {
    background: var(--gh-ink) !important;
    background-image: none !important;
    padding-top: 64px !important;
    padding-bottom: 40px !important;
}
.footer-area .widget-title { color: #fff !important; font-size: 17px !important; font-weight: 700; }
.footer-area p,
.footer-area li,
.footer-area a,
.footer-area .time { color: rgba(255, 255, 255, .72) !important; }
.footer-area a:hover { color: #fff !important; }
.footer-area .single-recent-post-item .thumb img { border-radius: 8px; }

/* Cookie banner + back to top */
.back-to-top {
    background: var(--gh-blue) !important;
    border-radius: 50% !important;
    box-shadow: var(--gh-shadow);
}
#gdpr-cookie-message {
    border-radius: var(--gh-radius) !important;
    box-shadow: var(--gh-shadow-hover) !important;
}

/* ---------- Mobile ---------- */
@media (max-width: 991px) {
    .home-slide { padding: 28px 0 20px; }
    .rise-area.style_02 .rise-flex-contents { flex-direction: column; align-items: stretch; padding: 20px; }
    .rise-area .single-donate { width: 100%; }
}
@media (max-width: 575px) {
    .container { padding-left: 16px; padding-right: 16px; }
    .topbar-area .left-contnet { display: none; }
    .featured-contents, .recent-contents { padding: 16px 18px 18px !important; }
    .footer-area .footer-top { padding-top: 44px !important; }
    .back-to-top { bottom: 96px !important; }          /* clear the sticky "Start a Campaign" bar */
    .home-slide { padding-bottom: 8px; }
    .featured-area.padding-top-100 { padding-top: 48px !important; }
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .preloader { display: none !important; }
}
